Brian Silverman | ea861c1 | 2018-08-04 17:43:02 -0700 | [diff] [blame] | 1 | # Copyright 2016, 2017 Peter Dimov |
| 2 | # Distributed under the Boost Software License, Version 1.0. |
| 3 | # (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt) |
| 4 | |
| 5 | language: cpp |
| 6 | |
| 7 | sudo: false |
| 8 | |
| 9 | branches: |
| 10 | only: |
| 11 | - master |
| 12 | - develop |
| 13 | - /feature\/.*/ |
| 14 | |
| 15 | env: |
| 16 | matrix: |
| 17 | - BOGUS_JOB=true |
| 18 | |
| 19 | matrix: |
| 20 | |
| 21 | exclude: |
| 22 | - env: BOGUS_JOB=true |
| 23 | |
| 24 | include: |
| 25 | - os: linux |
| 26 | compiler: g++ |
| 27 | env: TOOLSET=gcc CXXSTD=03,11 |
| 28 | |
| 29 | - os: linux |
| 30 | compiler: clang++ |
| 31 | env: TOOLSET=clang CXXSTD=03,11,14,1z |
| 32 | |
| 33 | - os: osx |
| 34 | compiler: clang++ |
| 35 | env: TOOLSET=clang CXXSTD=03,11,14,1z |
| 36 | |
| 37 | install: |
| 38 | - BOOST_BRANCH=develop && [ "$TRAVIS_BRANCH" == "master" ] && BOOST_BRANCH=master || true |
| 39 | - cd .. |
| 40 | - git clone -b $BOOST_BRANCH https://github.com/boostorg/boost.git boost-root |
| 41 | - cd boost-root |
| 42 | - git submodule update --init tools/build |
| 43 | - git submodule update --init libs/config |
| 44 | - git submodule update --init libs/core |
| 45 | - cp -r $TRAVIS_BUILD_DIR/* libs/assert |
| 46 | - ./bootstrap.sh |
| 47 | - ./b2 headers |
| 48 | |
| 49 | script: |
| 50 | - ./b2 libs/assert/test toolset=$TOOLSET cxxstd=$CXXSTD |
| 51 | |
| 52 | notifications: |
| 53 | email: |
| 54 | on_success: always |