Add toolset to use for Travis.

This commit is contained in:
Rene Rivera
2015-05-21 12:46:40 -05:00
parent e5b485ccf2
commit b7a00a68aa

View File

@ -5,20 +5,23 @@ compiler:
- clang - clang
install: install:
- cd $TRAVIS_BUILD_DIR
- wget "https://github.com/boostorg/build/archive/develop.tar.gz" - wget "https://github.com/boostorg/build/archive/develop.tar.gz"
- tar -xzvf develop.tar.gz - tar -xzvf develop.tar.gz
- cd build-develop - cd build-develop
- ./bootstrap.sh - ./bootstrap.sh
- sudo ./b2 install --prefix=/usr - sudo ./b2 install --prefix=/usr
- if [ "$CC" = "gcc" ]; then export B2_TOOLSET="gcc"; fi
- if [ "$CC" = "clang" ]; then export B2_TOOLSET="clang"; fi
- cd $TRAVIS_BUILD_DIR - cd $TRAVIS_BUILD_DIR
before_script: before_script:
- cd $TRAVIS_BUILD_DIR - cd $TRAVIS_BUILD_DIR
- 'echo "project ROOT : : : build-dir bin ;" > jamroot.jam' - 'echo "project ROOT : : : build-dir bin ;" > jamroot.jam'
- cd $TRAVIS_BUILD_DIR
script: script:
- cd $TRAVIS_BUILD_DIR - cd test && b2 -a --verbose-test toolset=$B2_TOOLSET
- cd test && b2 -a --verbose-test
branches: branches:
only: only: