Repository: qpid-dispatch Updated Branches: refs/heads/0.8.x ced41ae3b -> 9f76e3228
DISPATCH-774: Update .travis.yml to test on travis Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/9f76e322 Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/9f76e322 Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/9f76e322 Branch: refs/heads/0.8.x Commit: 9f76e32283cbb0c4588bf1ff72d4634a7f0fad2e Parents: b1e2748 Author: Alan Conway <[email protected]> Authored: Tue May 16 14:39:49 2017 -0400 Committer: Alan Conway <[email protected]> Committed: Tue May 16 14:43:44 2017 -0400 ---------------------------------------------------------------------- .travis.yml | 76 +++++++++++++++++++++++--------------------------------- 1 file changed, 31 insertions(+), 45 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/9f76e322/.travis.yml ---------------------------------------------------------------------- diff --git a/.travis.yml b/.travis.yml index 2f25d54..c761aa5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,59 +16,45 @@ # specific language governing permissions and limitations # under the License # -os: -- linux -sudo: required -language: -- python -python: -- 2.7 + +os: linux +sudo: false +language: c + addons: apt: packages: - cmake - - cmake-curses-gui - - uuid-dev - - libssl-dev - - sasl2-bin - - libsasl2-2 - libsasl2-dev + - libssl-dev + - python2.7 + - python2.7-dev - sasl2-bin - swig - - python-dev - - ruby-dev - - libperl-dev - - git - - make - - valgrind + - maven -before_install: -- git submodule add https://github.com/apache/qpid-proton.git -- git submodule init -- git submodule update -before_script: -- lsb_release -a -- cd qpid-proton -- mkdir build -- cd build -- cmake .. -DCMAKE_INSTALL_PREFIX=/usr -# This builds and installs qpid-proton -- sudo make install -- pushd proton-c/bindings/python/dist -- sudo python ./setup.py build install +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 -- PYTHON_VER=`python -c "import sys; print ('python%s.%s' % (sys.version_info[0], sys.version_info[1]))"` -- export PYTHONPATH=$PYTHONPATH:/usr/local/lib/$PYTHON_VER/dist-packages -- cd ../.. + +before_script: +- PREFIX=$PWD/install +- source qpid-proton/build/config.sh - mkdir build -- cd build -- PREFIX=`python -c "import sys; print(sys.prefix)"` -- PYEXE=`python -c "import sys; print(sys.executable)"` -- echo PYTHON_EXECUTABLE:FILEPATH=$PYEXE -- echo PYTHON_INCLUDE_DIR:PATH=$PREFIX/include/$PYTHON_VER -- cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DPYTHON_EXECUTABLE:FILEPATH=$PYEXE -DPYTHON_INCLUDE_DIR:PATH=$PREFIX/include/$PYTHON_VER -DPYTHON_LIBRARY:FILEPATH=/opt/python/2.7.12/lib/libpython2.7.so -# This build qpid-dispatch -- sudo make install +- pushd build +- cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX -DUSE_VALGRIND=NO +- cmake --build . --target install + script: -# Now run the unit tests -- ctest -VV +- ctest -V +- popd +- mvn apache-rat:check --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
