• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
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 LINK=static,shared
31
32    - os: linux
33      compiler: g++-5
34      env: TOOLSET=gcc LINK=static,shared
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 LINK=static,shared
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 LINK=static,shared
55      addons:
56        apt:
57          packages:
58            - g++-7
59          sources:
60            - ubuntu-toolchain-r-test
61
62    - os: linux
63      compiler: clang++
64      env: TOOLSET=clang LINK=static,shared
65
66    - os: linux
67      compiler: clang++-libc++
68      env: TOOLSET=clang LINK=static,shared
69      addons:
70        apt:
71          packages:
72            - libc++-dev
73
74    - os: osx
75      compiler: clang++
76      env: TOOLSET=clang LINK=static,shared
77
78    - os: osx
79      osx_image: xcode10
80      compiler: clang++
81      env: TOOLSET=clang LINK=static,shared
82
83install:
84  - BOOST_BRANCH=develop && [ "$TRAVIS_BRANCH" == "master" ] && BOOST_BRANCH=master || true
85  - cd ..
86  - git clone -b $BOOST_BRANCH https://github.com/boostorg/boost.git boost-root
87  - cd boost-root
88  - git submodule update --init tools/build
89  - git submodule update --init libs/config
90  - git submodule update --init tools/boostdep
91  - cp -r $TRAVIS_BUILD_DIR/* libs/serialization
92  - python tools/boostdep/depinst/depinst.py serialization
93  - ./bootstrap.sh
94  - ./b2 headers
95
96script:
97  - |-
98    echo "using $TOOLSET : : $TRAVIS_COMPILER ;" > ~/user-config.jam
99  - ./b2 -j 3 libs/serialization/test toolset=$TOOLSET link=${LINK:-shared}
100
101notifications:
102  email:
103    on_success: always
104