blob: ff1c41fff3429ac3ab5b5d4d787d8a2a4c6d1273 [file] [log] [blame]
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License
#
os: linux
sudo: false
language: c
addons:
apt:
packages:
- cmake
- libsasl2-dev
- libssl-dev
- python2.7
- python2.7-dev
- sasl2-bin
- swig
install:
- PREFIX=$PWD/install
- git submodule add https://git-wip-us.apache.org/repos/asf/qpid-proton.git
- git submodule update --init
# Build and install latest proton from source.
- mkdir qpid-proton/build
- pushd qpid-proton/build
- export PATH="/usr/bin:$PATH" # Avoid mismatched python interpreters in /opt
- cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX -DBUILD_PYTHON=YES -DBUILD_JAVASCRIPT=NO -DBUILD_CPP=NO -DBUILD_GO=NO -DBUILD_RUBY=NO -DBUILD_PHP=NO -DBUILD_PERL=NO
- cmake --build . --target install
- popd
before_script:
- PREFIX=$PWD/install
- source qpid-proton/build/config.sh
- mkdir build
- pushd build
- cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX -DUSE_VALGRIND=NO
- cmake --build . --target install
script:
- ctest -V
- popd