From 7eccdaa78d15e63f20fc3cb3ad7977852bf0ef26 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Thu, 24 Aug 2017 10:23:09 +0100 Subject: [PATCH 1/3] Use boost 1.65 in travis Also copied some other things that I've found to work well. --- .travis.yml | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/.travis.yml b/.travis.yml index da716e7..966b4a8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,40 +11,45 @@ language: c++ addons: apt: packages: - - libboost-dev - libboost-tools-dev matrix: include: - compiler: gcc - env: BJAM_TOOLSET=gcc-std03 + env: | + USER_CONFIG="using gcc : : g++-4.8 -Werror --std=c++03 ;" - compiler: gcc - env: BJAM_TOOLSET=gcc-std11 + env: | + USER_CONFIG="using gcc : : g++-4.8 -Werror --std=c++11 ;" - compiler: clang - env: BJAM_TOOLSET=clang-std03 + env: | + USER_CONFIG="using clang : : clang++ -Werror --std=c++03 ;" - compiler: clang - env: BJAM_TOOLSET=clang-std11 + env: | + USER_CONFIG="using clang : : clang++ -Werror --std=c++11 ;" - compiler: clang - env: BJAM_TOOLSET=clang-pretend_no_auto_ptr_etc + env: | + USER_CONFIG="using clang : : clang++ -Werror --std=c++11 -D_HAS_AUTO_PTR_ETC=0 ;" before_script: - - | - echo "using gcc : std03 : g++-4.8 -Werror --std=c++03 ;" > ~/user-config.jam - echo "using gcc : std11 : g++-4.8 -Werror --std=c++11 ;" >> ~/user-config.jam - echo "using clang : std03 : clang++ -Werror --std=c++03 ;" >> ~/user-config.jam - echo "using clang : std11 : clang++ -Werror --std=c++11 ;" >> ~/user-config.jam - echo "using clang : pretend_no_auto_ptr_etc : clang++ -Werror --std=c++11 -D_HAS_AUTO_PTR_ETC=0 ;" >> ~/user-config.jam - - cat ~/user-config.jam + - cd ${TRAVIS_BUILD_DIR} - touch Jamroot.jam + - cd $HOME + - echo $USER_CONFIG > ~/user-config.jam + - cat ~/user-config.jam + - wget -O boost.tar.bz2 https://dl.bintray.com/boostorg/release/1.65.0/source/boost_1_65_0.tar.bz2 + - tar -xjf boost.tar.bz2 + - mv boost_1_* boost + - rm -r boost/boost/functional script: - cd ${TRAVIS_BUILD_DIR}/test - - bjam -q ${BJAM_TOOLSET} include=${TRAVIS_BUILD_DIR}/include + - bjam -q ${BJAM_TOOLSET} include=${HOME}/boost include=${TRAVIS_BUILD_DIR}/include - cd ${TRAVIS_BUILD_DIR}/hash/test - - bjam -q ${BJAM_TOOLSET} include=${TRAVIS_BUILD_DIR}/include + - bjam -q ${BJAM_TOOLSET} include=${HOME}/boost include=${TRAVIS_BUILD_DIR}/include - cd ${TRAVIS_BUILD_DIR}/forward/test - - bjam -q ${BJAM_TOOLSET} include=${TRAVIS_BUILD_DIR}/include + - bjam -q ${BJAM_TOOLSET} include=${HOME}/boost include=${TRAVIS_BUILD_DIR}/include - cd ${TRAVIS_BUILD_DIR}/factory/test - - bjam -q ${BJAM_TOOLSET} include=${TRAVIS_BUILD_DIR}/include + - bjam -q ${BJAM_TOOLSET} include=${HOME}/boost include=${TRAVIS_BUILD_DIR}/include - cd ${TRAVIS_BUILD_DIR}/overloaded_function/test - - bjam -q ${BJAM_TOOLSET} include=${TRAVIS_BUILD_DIR}/include + - bjam -q ${BJAM_TOOLSET} include=${HOME}/boost include=${TRAVIS_BUILD_DIR}/include From 1360fbe99ad1205e4e675f3a80c83cd910f5122f Mon Sep 17 00:00:00 2001 From: Daniel James Date: Thu, 24 Aug 2017 22:03:19 +0100 Subject: [PATCH 2/3] Download branch snapshot from cron jobs --- .travis.yml | 42 +++++++++++++++++++++++++++++++++--------- 1 file changed, 33 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 966b4a8..2250e98 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,24 +32,48 @@ matrix: USER_CONFIG="using clang : : clang++ -Werror --std=c++11 -D_HAS_AUTO_PTR_ETC=0 ;" before_script: + - export BOOST_VERSION=1.65.0 + - export BOOST_FILENAME=boost_1_65_0 + - export BOOST_ROOT=${HOME}/boost - cd ${TRAVIS_BUILD_DIR} - touch Jamroot.jam - cd $HOME - echo $USER_CONFIG > ~/user-config.jam - cat ~/user-config.jam - - wget -O boost.tar.bz2 https://dl.bintray.com/boostorg/release/1.65.0/source/boost_1_65_0.tar.bz2 - - tar -xjf boost.tar.bz2 - - mv boost_1_* boost - - rm -r boost/boost/functional + - | + mkdir $HOME/download + mkdir $HOME/extract + cd $HOME/download + if [ "$TRAVIS_EVENT_TYPE" == "cron" ] + then + if [ "$TRAVIS_BRANCH" == "master" ] + then + snapshot_branch=master + else + snapshot_branch=develop + fi + download_url=$(curl https://api.bintray.com/packages/boostorg/$snapshot_branch/snapshot/files | + python -c "import os.path, sys, json; x = json.load(sys.stdin); print '\n'.join(a['path'] for a in x if os.path.splitext(a['path'])[1] == '.bz2')" | + head -n 1 | + sed "s/^/http:\/\/dl.bintray.com\/boostorg\/$snapshot_branch\//") + else + download_url=https://sourceforge.net/projects/boost/files/boost/${BOOST_VERSION}/${BOOST_FILENAME}.tar.bz2/download + fi + echo "Downloading ${download_url}" + wget -O boost.tar.bz2 $download_url + cd $HOME/extract + tar -xjf $HOME/download/boost.tar.bz2 + mv * ${BOOST_ROOT} + - rm -r ${BOOST_ROOT}/boost/functional script: - cd ${TRAVIS_BUILD_DIR}/test - - bjam -q ${BJAM_TOOLSET} include=${HOME}/boost include=${TRAVIS_BUILD_DIR}/include + - bjam -q ${BJAM_TOOLSET} include=${BOOST_ROOT} include=${TRAVIS_BUILD_DIR}/include - cd ${TRAVIS_BUILD_DIR}/hash/test - - bjam -q ${BJAM_TOOLSET} include=${HOME}/boost include=${TRAVIS_BUILD_DIR}/include + - bjam -q ${BJAM_TOOLSET} include=${BOOST_ROOT} include=${TRAVIS_BUILD_DIR}/include - cd ${TRAVIS_BUILD_DIR}/forward/test - - bjam -q ${BJAM_TOOLSET} include=${HOME}/boost include=${TRAVIS_BUILD_DIR}/include + - bjam -q ${BJAM_TOOLSET} include=${BOOST_ROOT} include=${TRAVIS_BUILD_DIR}/include - cd ${TRAVIS_BUILD_DIR}/factory/test - - bjam -q ${BJAM_TOOLSET} include=${HOME}/boost include=${TRAVIS_BUILD_DIR}/include + - bjam -q ${BJAM_TOOLSET} include=${BOOST_ROOT} include=${TRAVIS_BUILD_DIR}/include - cd ${TRAVIS_BUILD_DIR}/overloaded_function/test - - bjam -q ${BJAM_TOOLSET} include=${HOME}/boost include=${TRAVIS_BUILD_DIR}/include + - bjam -q ${BJAM_TOOLSET} include=${BOOST_ROOT} include=${TRAVIS_BUILD_DIR}/include From dd14136f442566302d351aa46ca21667da04e445 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Fri, 8 Sep 2017 21:40:16 +0100 Subject: [PATCH 3/3] Use 1.65.1 in travis --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2250e98..5edf19f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,8 +32,8 @@ matrix: USER_CONFIG="using clang : : clang++ -Werror --std=c++11 -D_HAS_AUTO_PTR_ETC=0 ;" before_script: - - export BOOST_VERSION=1.65.0 - - export BOOST_FILENAME=boost_1_65_0 + - export BOOST_VERSION=1.65.1 + - export BOOST_FILENAME=boost_1_65_1 - export BOOST_ROOT=${HOME}/boost - cd ${TRAVIS_BUILD_DIR} - touch Jamroot.jam