[CI] Enable travis script to run with other branches than master or develop

This commit is contained in:
Mike Dev
2019-12-28 12:14:26 +01:00
parent e54e8e0173
commit 7ec82a06d4

View File

@ -243,8 +243,9 @@ matrix:
osx_image: xcode6.4
install:
- BOOST_BRANCH=develop && [ "$TRAVIS_BRANCH" == "master" ] && BOOST_BRANCH=master || true
- cd ..
- git clone -b $TRAVIS_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
- git clone -b $BOOST_BRANCH https://github.com/boostorg/boost.git boost-root
- cd boost-root
- git submodule update --init tools/build
- git submodule update --init tools/boost_install