Skip to content

Merge .travis.yml from master to 0.11-devel #412

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 17, 2014
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added .travis.yml
  • Loading branch information
glynos authored and leecoder committed Jul 9, 2014
commit a63a417e5b9e02d681f4411ed9fa4a0e1d4ee565
43 changes: 32 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,38 @@
language: cpp
language:
- cpp

compiler:
- gcc
- clang
env: BOOST_ROOT=$TRAVIS_BUILD_DIR/../boost_1_55_0
- clang
- gcc

env:
- BUILD_SHARED_LIBS="ON" CMAKE_BUILD_TYPE="Release"
- BUILD_SHARED_LIBS="OFF" CMAKE_BUILD_TYPE="Release"
- BUILD_SHARED_LIBS="ON" CMAKE_BUILD_TYPE="Debug"
- BUILD_SHARED_LIBS="OFF" CMAKE_BUILD_TYPE="Debug"

before_install:
- curl -s http://cznic.dl.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.tar.bz2|tar xfj - -C ..
- sudo add-apt-repository ppa:apokluda/boost1.53 --yes
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test --yes # libstdc++-4.8
- if [ "${CXX}" == "clang++" ]; then sudo add-apt-repository --yes ppa:h-rayflood/llvm; fi # clang++-3.2
- sudo apt-get update

install:
- cd $BOOST_ROOT
- ./bootstrap.sh --with-toolset=$CC
- ./b2 -j4 --stagedir=.
- cd -
- if [ "${CXX}" == "clang++" ]; then sudo apt-get -qq install clang-3.2; fi
- sudo apt-get install g++-4.8; # clang need it for libstdc++ update
- sudo apt-get install libboost-system1.53-dev
- sudo apt-get install libboost-regex1.53-dev
- sudo apt-get install libboost-filesystem1.53-dev

before_script:
# update compilers
- if [ "${CXX}" == "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
- if [ "${CXX}" == "clang++" ]; then export CXX="clang++-3.2" CC="clang-3.2"; fi

script:
- cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX
- make all test
- mkdir _build
- cd _build
# Note: clang not support libc++
- cmake -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} -DCPP-NETLIB_DISABLE_LIBCXX=YES -DCPP-NETLIB_DISABLE_FEATURE_TESTS=YES ..
- make
- make test