From e60afc5f2ce00da4d7efaa27b900ffcb49f5bca2 Mon Sep 17 00:00:00 2001 From: Nana Sakisaka <1901813+saki7@users.noreply.github.com> Date: Fri, 5 Sep 2025 01:15:11 +0900 Subject: [PATCH] Remove obsolete CI (Windows CI will be added later on GHA) --- .appveyor.yml | 77 ------------------------ .drone.star | 50 ---------------- .drone/drone.sh | 88 --------------------------- .travis.yml | 155 ------------------------------------------------ 4 files changed, 370 deletions(-) delete mode 100644 .appveyor.yml delete mode 100644 .drone.star delete mode 100755 .drone/drone.sh delete mode 100644 .travis.yml diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index 119310148..000000000 --- a/.appveyor.yml +++ /dev/null @@ -1,77 +0,0 @@ -#============================================================================== -# Copyright (c) 2016-2020 Nikita Kniazev -# -# Use, modification and distribution is subject to the Boost Software -# License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at -# http://www.boost.org/LICENSE_1_0.txt) -#============================================================================== - -clone_depth: 50 - -environment: - global: - PROJECT: libs\spirit - - matrix: - - { APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2019', ADDRMDL: 64, TOOLSET: 'msvc-14.2' } - - { APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2017', ADDRMDL: 64, TOOLSET: 'msvc-14.1' } - - { APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015', ADDRMDL: 64, TOOLSET: 'msvc-14.0' } - -init: - - set BOOST_ROOT=%APPVEYOR_BUILD_FOLDER%\..\boost - - set BOOST_BUILD_PATH=%BOOST_ROOT%\..\boost-build - - set B2_ARGS=link=shared threading=multi variant=release - address-model=%ADDRMDL% toolset=%TOOLSET% - define=BOOST_ALL_NO_LIB - define=BOOST_SPIRIT_X3_HIDE_CXX17_WARNING - -before_build: - - set PATH=%BOOST_ROOT%;C:\Python36-x64\Scripts;%PATH% - - ps: | - # Creating %USERPROFILE%/user-config.jam file - @' - - import feature os regex toolset pch ; - - - # A subfeature that tells Spirit tests to use PCH - feature.subfeature pch on : version : spirit : optional propagated incidental ; - - '@ | sc "$env:USERPROFILE/user-config.jam" - - - set BRANCH=%APPVEYOR_REPO_BRANCH% - # TODO: Determine the root branch when PR targeted/build from not our main branches. - - if not "%BRANCH%" == "master" - if not "%BRANCH%" == "develop" - set BRANCH=develop - - echo Root branch is %BRANCH% - - # Sadly git's --shallow-submodules has hardcoded depth of 1 commit - # Patch the git binary with a little more depth to deal with boost-commitbot's lag - - ps: | - $git = Get-Command git | Select-Object -ExpandProperty Definition - $git = Split-Path -Parent $git | Split-Path -Parent - Get-ChildItem -Path "$git\mingw64\*" -Include *.exe -Recurse | - ForEach-Object -Process {(Get-Content -Raw $_).Replace("--depth=1","--depth=9") | Set-Content $_} - - # Checkout Boost - - git clone -j10 --branch=%BRANCH% --depth=1 --quiet - --recurse-submodules=":(exclude)%PROJECT%" --shallow-submodules - https://github.com/boostorg/boost.git %BOOST_ROOT% - - pushd %BOOST_ROOT% - # Remove empty folder - - rmdir /S /Q %PROJECT% - # Move the repository to boost/libs and make a link to previous place - - move %APPVEYOR_BUILD_FOLDER% %PROJECT% - - mklink /J %APPVEYOR_BUILD_FOLDER% %PROJECT% - -build_script: - - bootstrap.bat --with-toolset=msvc - - # Let's have less noise (Appveyor cannot collapse command output) - - b2 headers 2>&1 >> deps_build.log - || ( echo === deps_build.log === && cat deps_build.log ) - -test_script: - - b2 %B2_ARGS% %PROJECT%\classic\test %PROJECT%\repository\test %PROJECT%\test - warnings=extra warnings-as-errors=on pch=on-spirit diff --git a/.drone.star b/.drone.star deleted file mode 100644 index 08578208b..000000000 --- a/.drone.star +++ /dev/null @@ -1,50 +0,0 @@ -# Use, modification, and distribution are -# subject to the Boost Software License, Version 1.0. (See accompanying -# file LICENSE.txt) -# -# Copyright Rene Rivera 2020. - -# For Drone CI we use the Starlark scripting language to reduce duplication. -# As the yaml syntax for Drone CI is rather limited. -# -# -globalenv={'PROJECT': 'libs/spirit'} -linuxglobalimage="cppalliance/droneubuntu1804:1" -windowsglobalimage="cppalliance/dronevs2019" - -def main(ctx): - return [ - linux_cxx("STD=14 JOB=test/x3 Job 0", "clang-10", packages="clang-10 libc++-10-dev libc++abi-10-dev jq", llvm_os="bionic", llvm_ver="10", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'STD': '14', 'JOB': 'test/x3', 'TRAVIS_COMPILER': 'clang-10', 'DRONE_JOB_UUID': 'b6589fc6ab'}, globalenv=globalenv), - linux_cxx("STD=14 JOB=test/x3 Job 1", "gcc-10", packages="g++-10 jq", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'STD': '14', 'JOB': 'test/x3', 'TRAVIS_COMPILER': 'gcc-10', 'DRONE_JOB_UUID': '356a192b79'}, globalenv=globalenv), - linux_cxx("STD=11 JOB=test/qi Job 2", "clang-10", packages="clang-10 libc++-10-dev libc++abi-10-dev jq", llvm_os="bionic", llvm_ver="10", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'STD': '11', 'JOB': 'test/qi', 'TRAVIS_COMPILER': 'clang-10', 'DRONE_JOB_UUID': 'da4b9237ba'}, globalenv=globalenv), - linux_cxx("STD=11 JOB=test/karma Job 3", "clang-10", packages="clang-10 libc++-10-dev libc++abi-10-dev jq", llvm_os="bionic", llvm_ver="10", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'STD': '11', 'JOB': 'test/karma', 'TRAVIS_COMPILER': 'clang-10', 'DRONE_JOB_UUID': '77de68daec'}, globalenv=globalenv), - linux_cxx("STD=11 JOB=test/lex Job 4", "clang-10", packages="clang-10 libc++-10-dev libc++abi-10-dev jq", llvm_os="bionic", llvm_ver="10", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'STD': '11', 'JOB': 'test/lex', 'TRAVIS_COMPILER': 'clang-10', 'DRONE_JOB_UUID': '1b64538924'}, globalenv=globalenv), - linux_cxx("STD=11 JOB=test/support Job 5", "clang-10", packages="clang-10 libc++-10-dev libc++abi-10-dev jq", llvm_os="bionic", llvm_ver="10", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'STD': '11', 'JOB': 'test/support', 'TRAVIS_COMPILER': 'clang-10', 'DRONE_JOB_UUID': 'ac3478d69a'}, globalenv=globalenv), - linux_cxx("STD=11 JOB=repository/test Job 6", "clang-10", packages="clang-10 libc++-10-dev libc++abi-10-dev jq", llvm_os="bionic", llvm_ver="10", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'STD': '11', 'JOB': 'repository/test', 'TRAVIS_COMPILER': 'clang-10', 'DRONE_JOB_UUID': 'c1dfd96eea'}, globalenv=globalenv), - # Not building # - # linux_cxx("STD=03 JOB=test/qi Job 7", "clang-10", packages="clang-10 libc++-10-dev libc++abi-10-dev jq", llvm_os="bionic", llvm_ver="10", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'STD': '03', 'JOB': 'test/qi', 'TRAVIS_COMPILER': 'clang-10', 'DRONE_JOB_UUID': '902ba3cda1'}, globalenv=globalenv), - # Not building # - # linux_cxx("STD=03 JOB=test/karma Job 8", "clang-10", packages="clang-10 libc++-10-dev libc++abi-10-dev jq", llvm_os="bionic", llvm_ver="10", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'STD': '03', 'JOB': 'test/karma', 'TRAVIS_COMPILER': 'clang-10', 'DRONE_JOB_UUID': 'fe5dbbcea5'}, globalenv=globalenv), - linux_cxx("STD=03 JOB=test/lex Job 9", "clang-10", packages="clang-10 libc++-10-dev libc++abi-10-dev jq", llvm_os="bionic", llvm_ver="10", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'STD': '03', 'JOB': 'test/lex', 'TRAVIS_COMPILER': 'clang-10', 'DRONE_JOB_UUID': '0ade7c2cf9'}, globalenv=globalenv), - linux_cxx("STD=03 JOB=test/support Job 10", "clang-10", packages="clang-10 libc++-10-dev libc++abi-10-dev jq", llvm_os="bionic", llvm_ver="10", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'STD': '03', 'JOB': 'test/support', 'TRAVIS_COMPILER': 'clang-10', 'DRONE_JOB_UUID': 'b1d5781111'}, globalenv=globalenv), - linux_cxx("STD=03 JOB=repository/test Job 11", "clang-10", packages="clang-10 libc++-10-dev libc++abi-10-dev jq", llvm_os="bionic", llvm_ver="10", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'STD': '03', 'JOB': 'repository/test', 'TRAVIS_COMPILER': 'clang-10', 'DRONE_JOB_UUID': '17ba079149'}, globalenv=globalenv), - linux_cxx("STD=11 JOB=test/qi Job 12", "gcc-10", packages="g++-10 jq", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'STD': '11', 'JOB': 'test/qi', 'TRAVIS_COMPILER': 'gcc-10', 'DRONE_JOB_UUID': '7b52009b64'}, globalenv=globalenv), - linux_cxx("STD=11 JOB=test/karma Job 13", "gcc-10", packages="g++-10 jq", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'STD': '11', 'JOB': 'test/karma', 'TRAVIS_COMPILER': 'gcc-10', 'DRONE_JOB_UUID': 'bd307a3ec3'}, globalenv=globalenv), - linux_cxx("STD=11 JOB=test/lex Job 14", "gcc-10", packages="g++-10 jq", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'STD': '11', 'JOB': 'test/lex', 'TRAVIS_COMPILER': 'gcc-10', 'DRONE_JOB_UUID': 'fa35e19212'}, globalenv=globalenv), - linux_cxx("STD=11 JOB=test/support Job 15", "gcc-10", packages="g++-10 jq", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'STD': '11', 'JOB': 'test/support', 'TRAVIS_COMPILER': 'gcc-10', 'DRONE_JOB_UUID': 'f1abd67035'}, globalenv=globalenv), - linux_cxx("STD=11 JOB=repository/test Job 16", "gcc-10", packages="g++-10 jq", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'STD': '11', 'JOB': 'repository/test', 'TRAVIS_COMPILER': 'gcc-10', 'DRONE_JOB_UUID': '1574bddb75'}, globalenv=globalenv), - # Not building # - # linux_cxx("STD=03 JOB=test/qi Job 17", "gcc-10", packages="g++-10 jq", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'STD': '03', 'JOB': 'test/qi', 'TRAVIS_COMPILER': 'gcc-10', 'DRONE_JOB_UUID': '0716d9708d'}, globalenv=globalenv), - # Not building # - # linux_cxx("STD=03 JOB=test/karma Job 18", "gcc-10", packages="g++-10 jq", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'STD': '03', 'JOB': 'test/karma', 'TRAVIS_COMPILER': 'gcc-10', 'DRONE_JOB_UUID': '9e6a55b6b4'}, globalenv=globalenv), - linux_cxx("STD=03 JOB=test/lex Job 19", "gcc-10", packages="g++-10 jq", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'STD': '03', 'JOB': 'test/lex', 'TRAVIS_COMPILER': 'gcc-10', 'DRONE_JOB_UUID': 'b3f0c7f6bb'}, globalenv=globalenv), - linux_cxx("STD=03 JOB=test/support Job 20", "gcc-10", packages="g++-10 jq", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'STD': '03', 'JOB': 'test/support', 'TRAVIS_COMPILER': 'gcc-10', 'DRONE_JOB_UUID': '91032ad7bb'}, globalenv=globalenv), - linux_cxx("STD=03 JOB=repository/test Job 21", "gcc-10", packages="g++-10 jq", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'STD': '03', 'JOB': 'repository/test', 'TRAVIS_COMPILER': 'gcc-10', 'DRONE_JOB_UUID': '472b07b9fc'}, globalenv=globalenv), - # Not building # - # linux_cxx("STD=03 JOB=classic/test Job 22", "clang-10", packages="clang-10 libc++-10-dev libc++abi-10-dev jq", llvm_os="bionic", llvm_ver="10", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'STD': '03', 'JOB': 'classic/test', 'TRAVIS_COMPILER': 'clang-10', 'DRONE_JOB_UUID': '12c6fc06c9'}, globalenv=globalenv), - # Not building # - # linux_cxx("STD=03 JOB=classic/test Job 23", "gcc-10", packages="g++-10 jq", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'STD': '03', 'JOB': 'classic/test', 'TRAVIS_COMPILER': 'gcc-10', 'DRONE_JOB_UUID': 'd435a6cdd7'}, globalenv=globalenv), - ] - -# from https://github.com/boostorg/boost-ci -load("@boost_ci//ci/drone/:functions.star", "linux_cxx","windows_cxx","osx_cxx","freebsd_cxx") diff --git a/.drone/drone.sh b/.drone/drone.sh deleted file mode 100755 index 1ead0dce8..000000000 --- a/.drone/drone.sh +++ /dev/null @@ -1,88 +0,0 @@ -#!/bin/bash - -# Copyright 2020 Rene Rivera, Sam Darwin -# Distributed under the Boost Software License, Version 1.0. -# (See accompanying file LICENSE.txt or copy at http://boost.org/LICENSE_1_0.txt) - -set -e -export TRAVIS_BUILD_DIR=$(pwd) -export DRONE_BUILD_DIR=$(pwd) -export TRAVIS_BRANCH=$DRONE_BRANCH -export VCS_COMMIT_ID=$DRONE_COMMIT -export GIT_COMMIT=$DRONE_COMMIT -export REPO_NAME=$DRONE_REPO -export USER=$(whoami) -export CC=${CC:-gcc} -export PATH=~/.local/bin:/usr/local/bin:$PATH -export BOOST_ROOT="$HOME/boost" -export BOOST_BUILD_PATH="$HOME/build-boost" -export TRAVIS_PULL_REQUEST=${DRONE_PULL_REQUEST:-false} -export TRAVIS_REPO_SLUG=$REPO_NAME - -if [ "$DRONE_JOB_BUILDTYPE" == "boost" ]; then - -echo '==================================> INSTALL' - -export CACHE_NAME=$TRAVIS_OS_NAME-$TOOLSET-$STD-$JOB -export PATH=$BOOST_ROOT:$PATH -if [[ "$TRAVIS_COMPILER" =~ ^clang- ]]; then export STDLIB=stdlib=libc++ ; fi -# Creating ~/user-config.jam file -sed 's/^ //' > ~/user-config.jam << 'EOF' - -import feature ; -import os ; -import regex ; -import toolset ; - - -local TOOLSET = [ os.environ TRAVIS_COMPILER ] ; -local toolset-parts = [ regex.split $(TOOLSET) "-" ] ; -local toolset-name = $(toolset-parts[1]) ; -local toolset-feature = $(toolset-parts[2-]:J="-") ; - -local cxx ; -switch $(toolset-name) { - case gcc : cxx ?= [ regex.replace $(TOOLSET) "gcc" "g++" ] ; - case clang : cxx ?= [ regex.replace $(TOOLSET) "clang" "clang++" ] ; - case * : EXIT "user-config: Unsupported toolset $(toolset-name)" ; -} - -using $(toolset-name) : $(toolset-feature) : ccache $(cxx) ; - -# Release variant with enabled asserts -variant sanitize : speed off full - off ; - -# Determining the root branch -if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then - export BRANCH=$TRAVIS_BRANCH -else - # It is a pull request. Retrieve the base branch from GitHub - GH_PR_API=https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST - export BRANCH=`curl -s $GH_PR_API | jq -r .head.ref`; -fi -if [[ ! "$BRANCH" =~ ^(master|develop)$ ]]; then - # Travis has been triggered not from our main branches. - # Find out the base branch from the git history - # TODO: Not implemented yet, but in most cases it will be develop branch - export BRANCH=develop -fi -echo Root branch is $BRANCH - -env -sed 's/--depth=1/--depth=9/g' `which git` > ~/git && chmod +x ~/git -~/git clone -j10 --branch=$BRANCH --depth=1 --quiet --recurse-submodules=":(exclude)$PROJECT" --shallow-submodules https://github.com/boostorg/boost.git $BOOST_ROOT -pushd $BOOST_ROOT -rm -rf $PROJECT -./bootstrap.sh --with-toolset=clang -./b2 headers -cp -rp $TRAVIS_BUILD_DIR $PROJECT -ln -s $PROJECT $TRAVIS_BUILD_DIR -cd $PROJECT -cd $JOB - -echo '==================================> SCRIPT' - -b2 link=shared threading=multi variant=release,sanitize toolset=$TRAVIS_COMPILER cxxstd=$STD $STDLIB warnings=extra warnings-as-errors=on - -fi diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index be14bd637..000000000 --- a/.travis.yml +++ /dev/null @@ -1,155 +0,0 @@ -#============================================================================== -# Copyright (c) 2016-2021 Nikita Kniazev -# -# Use, modification and distribution is subject to the Boost Software -# License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at -# http://www.boost.org/LICENSE_1_0.txt) -#============================================================================== - -language: cpp - -sudo: false - -addon_shortcuts: - clang-12: &clang-12 - apt: - sources: - - sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-12 main' - key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key' - packages: - - clang-12 - - libc++-12-dev - - libc++abi-12-dev - - gcc-11: &gcc-11 - apt: - sources: - - sourceline: 'ppa:ubuntu-toolchain-r/test' - packages: - - g++-11 - -os: linux -dist: bionic - -env: - global: - - PROJECT=libs/spirit - - BOOST_ROOT=$HOME/boost - - BOOST_BUILD_PATH=$HOME/build-boost - -matrix: - include: - ### Spirit 3 - - { env: 'STD=14 JOB=test/x3', compiler: clang-12, addons: *clang-12 } - - { env: 'STD=14 JOB=test/x3', compiler: gcc-11, addons: *gcc-11 } - ### Spirit 2 - ## Clang - # 11 - - { env: 'STD=11 JOB=test/qi', compiler: clang-12, addons: *clang-12 } - - { env: 'STD=11 JOB=test/karma', compiler: clang-12, addons: *clang-12 } - - { env: 'STD=11 JOB=test/lex', compiler: clang-12, addons: *clang-12 } - - { env: 'STD=11 JOB=test/support', compiler: clang-12, addons: *clang-12 } - - { env: 'STD=11 JOB=repository/test', compiler: clang-12, addons: *clang-12 } - # 03 - - { env: 'STD=03 JOB=test/qi', compiler: clang-12, addons: *clang-12 } - - { env: 'STD=03 JOB=test/karma', compiler: clang-12, addons: *clang-12 } - - { env: 'STD=03 JOB=test/lex', compiler: clang-12, addons: *clang-12 } - - { env: 'STD=03 JOB=test/support', compiler: clang-12, addons: *clang-12 } - - { env: 'STD=03 JOB=repository/test', compiler: clang-12, addons: *clang-12 } - ## GCC - # 11 - - { env: 'STD=11 JOB=test/qi', compiler: gcc-11, addons: *gcc-11 } - - { env: 'STD=11 JOB=test/karma', compiler: gcc-11, addons: *gcc-11 } - - { env: 'STD=11 JOB=test/lex', compiler: gcc-11, addons: *gcc-11 } - - { env: 'STD=11 JOB=test/support', compiler: gcc-11, addons: *gcc-11 } - - { env: 'STD=11 JOB=repository/test', compiler: gcc-11, addons: *gcc-11 } - # 03 - - { env: 'STD=03 JOB=test/qi', compiler: gcc-11, addons: *gcc-11 } - - { env: 'STD=03 JOB=test/karma', compiler: gcc-11, addons: *gcc-11 } - - { env: 'STD=03 JOB=test/lex', compiler: gcc-11, addons: *gcc-11 } - - { env: 'STD=03 JOB=test/support', compiler: gcc-11, addons: *gcc-11 } - - { env: 'STD=03 JOB=repository/test', compiler: gcc-11, addons: *gcc-11 } - ### Spirit 1 - - { env: 'STD=03 JOB=classic/test', compiler: clang-12, addons: *clang-12 } - - { env: 'STD=03 JOB=classic/test', compiler: gcc-11, addons: *gcc-11 } - -cache: ccache - -before_install: - - export CACHE_NAME=$TRAVIS_OS_NAME-$TOOLSET-$STD-$JOB - - export PATH=$BOOST_ROOT:$PATH - - if [[ "$TRAVIS_COMPILER" =~ ^clang- ]]; then export STDLIB=stdlib=libc++ ; fi - - | - # Creating ~/user-config.jam file - sed 's/^ //' > ~/user-config.jam << 'EOF' - - import feature ; - import os ; - import regex ; - import toolset ; - - - local TOOLSET = [ os.environ TRAVIS_COMPILER ] ; - local toolset-parts = [ regex.split $(TOOLSET) "-" ] ; - local toolset-name = $(toolset-parts[1]) ; - local toolset-feature = $(toolset-parts[2-]:J="-") ; - - local cxx ; - switch $(toolset-name) { - case gcc : cxx ?= [ regex.replace $(TOOLSET) "gcc" "g++" ] ; - case clang : cxx ?= [ regex.replace $(TOOLSET) "clang" "clang++" ] ; - case * : EXIT "user-config: Unsupported toolset $(toolset-name)" ; - } - - using $(toolset-name) : $(toolset-feature) : ccache $(cxx) ; - - # Release variant with enabled asserts - variant sanitize : speed off full - off ; - - - | - # Determining the root branch - if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then - export BRANCH=$TRAVIS_BRANCH - else - # It is a pull request. Retrieve the base branch from GitHub - GH_PR_API=https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST - export BRANCH=`curl -s $GH_PR_API | jq -r .head.ref`; - fi - if [[ ! "$BRANCH" =~ ^(master|develop)$ ]]; then - # Travis has been triggered not from our main branches. - # Find out the base branch from the git history - # TODO: Not implemented yet, but in most cases it will be develop branch - export BRANCH=develop - fi - echo Root branch is $BRANCH - - # Dump environment variables - - env - - # Sadly git's --shallow-submodules has hardcoded depth of 1 commit - # Patch the git binary with a little more depth to deal with boost-commitbot's lag - - sed 's/--depth=1/--depth=9/g' `which git` > ~/git && chmod +x ~/git - - # Checkout Boost - - ~/git clone -j10 --branch=$BRANCH --depth=1 --quiet - --recurse-submodules=":(exclude)$PROJECT" --shallow-submodules - https://github.com/boostorg/boost.git $BOOST_ROOT - - pushd $BOOST_ROOT - # Remove the empty folder - - rm -rf $PROJECT - - ./bootstrap.sh --with-toolset=clang - - ./b2 headers - - # Move the repository to boost/libs and make a link to previous place - - mv $TRAVIS_BUILD_DIR $PROJECT - - ln -s $PROJECT $TRAVIS_BUILD_DIR - - - cd $PROJECT - - cd $JOB - -script: - - b2 link=shared threading=multi variant=release,sanitize - toolset=$TRAVIS_COMPILER cxxstd=$STD $STDLIB - warnings=extra warnings-as-errors=on - define=BOOST_SPIRIT_X3_HIDE_CXX17_WARNING