Brian Silverman | 8867871 | 2018-08-04 23:56:48 -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 | cache: |
| 10 | ccache: true |
| 11 | |
| 12 | branches: |
| 13 | only: |
| 14 | - master |
| 15 | - develop |
| 16 | - /feature\/.*/ |
| 17 | |
| 18 | env: |
| 19 | matrix: |
| 20 | - BOGUS_JOB=true |
| 21 | |
| 22 | matrix: |
| 23 | |
| 24 | exclude: |
| 25 | - env: BOGUS_JOB=true |
| 26 | |
| 27 | include: |
| 28 | - os: linux |
| 29 | compiler: g++ |
| 30 | env: TOOLSET=gcc |
| 31 | |
| 32 | - os: linux |
| 33 | compiler: g++-5 |
| 34 | env: TOOLSET=gcc-5 |
| 35 | addons: |
| 36 | apt: |
| 37 | packages: |
| 38 | - g++-5 |
| 39 | sources: |
| 40 | - ubuntu-toolchain-r-test |
| 41 | |
| 42 | - os: linux |
| 43 | compiler: g++-6 |
| 44 | env: TOOLSET=gcc-6 |
| 45 | addons: |
| 46 | apt: |
| 47 | packages: |
| 48 | - g++-6 |
| 49 | sources: |
| 50 | - ubuntu-toolchain-r-test |
| 51 | |
| 52 | - os: linux |
| 53 | compiler: g++-7 |
| 54 | env: TOOLSET=gcc-7 |
| 55 | addons: |
| 56 | apt: |
| 57 | packages: |
| 58 | - g++-7 |
| 59 | sources: |
| 60 | - ubuntu-toolchain-r-test |
| 61 | |
| 62 | - os: linux |
| 63 | compiler: g++-7 |
| 64 | env: TOOLSET=gcc-7 LINK=static |
| 65 | addons: |
| 66 | apt: |
| 67 | packages: |
| 68 | - g++-7 |
| 69 | sources: |
| 70 | - ubuntu-toolchain-r-test |
| 71 | |
| 72 | - os: linux |
| 73 | compiler: clang++ |
| 74 | env: TOOLSET=clang |
| 75 | |
| 76 | - os: linux |
| 77 | compiler: clang++ |
| 78 | env: TOOLSET=clang LINK=static |
| 79 | |
| 80 | - os: osx |
| 81 | compiler: clang++ |
| 82 | env: TOOLSET=clang |
| 83 | |
| 84 | - os: osx |
| 85 | compiler: clang++ |
| 86 | env: TOOLSET=clang LINK=static |
| 87 | |
| 88 | install: |
| 89 | - BOOST_BRANCH=develop && [ "$TRAVIS_BRANCH" == "master" ] && BOOST_BRANCH=master || true |
| 90 | - cd .. |
| 91 | - git clone -b $BOOST_BRANCH https://github.com/boostorg/boost.git boost-root |
| 92 | - cd boost-root |
| 93 | - git submodule update --init tools/build |
| 94 | - git submodule update --init libs/config |
| 95 | - git submodule update --init tools/boostdep |
| 96 | - cp -r $TRAVIS_BUILD_DIR/* libs/serialization |
| 97 | - python tools/boostdep/depinst/depinst.py serialization |
| 98 | - ./bootstrap.sh |
| 99 | - ./b2 headers |
| 100 | |
| 101 | script: |
| 102 | - ./b2 -j 3 libs/serialization/test toolset=$TOOLSET link=${LINK:-shared} |
| 103 | |
| 104 | notifications: |
| 105 | email: |
| 106 | on_success: always |