blob: d2fbcb7f148b18b0cedeac1508e094f539710b6a [file] [log] [blame]
Brian Silverman88678712018-08-04 23:56:48 -07001# 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
5language: cpp
6
7sudo: false
8
9cache:
10 ccache: true
11
12branches:
13 only:
14 - master
15 - develop
16 - /feature\/.*/
17
18env:
19 matrix:
20 - BOGUS_JOB=true
21
22matrix:
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
88install:
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
101script:
102 - ./b2 -j 3 libs/serialization/test toolset=$TOOLSET link=${LINK:-shared}
103
104notifications:
105 email:
106 on_success: always