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 7os: linux 8 9branches: 10 only: 11 - master 12 - develop 13 - /feature\/.*/ 14 15env: 16 matrix: 17 - BOGUS_JOB=true 18 19matrix: 20 21 exclude: 22 - env: BOGUS_JOB=true 23 24 include: 25 - os: linux 26 compiler: g++-4.4 27 env: TOOLSET=gcc CXXSTD=98,0x HEADERS_ONLY=1 28 addons: 29 apt: 30 packages: 31 - g++-4.4 32 sources: 33 - ubuntu-toolchain-r-test 34 35 - os: linux 36 compiler: g++-4.6 37 env: TOOLSET=gcc CXXSTD=98,0x HEADERS_ONLY=1 38 addons: 39 apt: 40 packages: 41 - g++-4.6 42 sources: 43 - ubuntu-toolchain-r-test 44 45 - os: linux 46 compiler: g++-4.7 47 env: TOOLSET=gcc CXXSTD=03,11 HEADERS_ONLY=1 48 addons: 49 apt: 50 packages: 51 - g++-4.7 52 sources: 53 - ubuntu-toolchain-r-test 54 55 - os: linux 56 compiler: g++-4.8 57 env: TOOLSET=gcc CXXSTD=03,11 HEADERS_ONLY=1 58 addons: 59 apt: 60 packages: 61 - g++-4.8 62 sources: 63 - ubuntu-toolchain-r-test 64 65 - os: linux 66 compiler: g++-4.9 67 env: TOOLSET=gcc CXXSTD=03,11 HEADERS_ONLY=1 68 addons: 69 apt: 70 packages: 71 - g++-4.9 72 sources: 73 - ubuntu-toolchain-r-test 74 75 - os: linux 76 compiler: g++-5 77 env: TOOLSET=gcc CXXSTD=03 78 addons: 79 apt: 80 packages: 81 - g++-5 82 sources: 83 - ubuntu-toolchain-r-test 84 85 - os: linux 86 compiler: g++-5 87 env: TOOLSET=gcc CXXSTD=11 88 addons: 89 apt: 90 packages: 91 - g++-5 92 sources: 93 - ubuntu-toolchain-r-test 94 95 - os: linux 96 compiler: g++-6 97 env: TOOLSET=gcc CXXSTD=14,1z HEADERS_ONLY=1 98 addons: 99 apt: 100 packages: 101 - g++-6 102 sources: 103 - ubuntu-toolchain-r-test 104 105 - os: linux 106 compiler: g++-7 107 env: TOOLSET=gcc CXXSTD=14,17 HEADERS_ONLY=1 108 addons: 109 apt: 110 packages: 111 - g++-7 112 sources: 113 - ubuntu-toolchain-r-test 114 115 - os: linux 116 compiler: g++-8 117 env: TOOLSET=gcc CXXSTD=14,17 HEADERS_ONLY=1 118 addons: 119 apt: 120 packages: 121 - g++-8 122 sources: 123 - ubuntu-toolchain-r-test 124 125 - os: linux 126 compiler: g++-9 127 env: TOOLSET=gcc CXXSTD=14 128 addons: 129 apt: 130 packages: 131 - g++-9 132 sources: 133 - ubuntu-toolchain-r-test 134 135 - os: linux 136 compiler: g++-9 137 env: TOOLSET=gcc CXXSTD=17 138 addons: 139 apt: 140 packages: 141 - g++-9 142 sources: 143 - ubuntu-toolchain-r-test 144 145 - os: linux 146 dist: trusty 147 compiler: clang++-3.5 148 env: TOOLSET=clang CXXSTD=03,11 HEADERS_ONLY=1 149 addons: 150 apt: 151 packages: 152 - clang-3.5 153 sources: 154 - ubuntu-toolchain-r-test 155 156 - os: linux 157 compiler: clang++-3.6 158 env: TOOLSET=clang CXXSTD=03,11,14 HEADERS_ONLY=1 159 addons: 160 apt: 161 packages: 162 - clang-3.6 163 sources: 164 - ubuntu-toolchain-r-test 165 166 - os: linux 167 compiler: clang++-3.7 168 env: TOOLSET=clang CXXSTD=03,11,14 HEADERS_ONLY=1 169 addons: 170 apt: 171 packages: 172 - clang-3.7 173 sources: 174 - ubuntu-toolchain-r-test 175 176 - os: linux 177 compiler: clang++-3.8 178 env: TOOLSET=clang CXXSTD=03,11,14 HEADERS_ONLY=1 179 addons: 180 apt: 181 packages: 182 - clang-3.8 183 sources: 184 - ubuntu-toolchain-r-test 185 186 - os: linux 187 compiler: clang++-3.9 188 env: TOOLSET=clang CXXSTD=03,11,14,1z HEADERS_ONLY=1 189 addons: 190 apt: 191 packages: 192 - clang-3.9 193 sources: 194 - ubuntu-toolchain-r-test 195 196 - os: linux 197 compiler: clang++-4.0 198 env: TOOLSET=clang CXXSTD=03,11,14,1z HEADERS_ONLY=1 199 addons: 200 apt: 201 packages: 202 - clang-4.0 203 sources: 204 - ubuntu-toolchain-r-test 205 206 - os: linux 207 compiler: clang++-5.0 208 env: TOOLSET=clang CXXSTD=03,11,14,1z HEADERS_ONLY=1 209 addons: 210 apt: 211 packages: 212 - clang-5.0 213 sources: 214 - ubuntu-toolchain-r-test 215 216 - os: linux 217 compiler: clang++-6.0 218 env: TOOLSET=clang CXXSTD=14,17 HEADERS_ONLY=1 219 addons: 220 apt: 221 packages: 222 - clang-6.0 223 sources: 224 - ubuntu-toolchain-r-test 225 226 - os: linux 227 compiler: clang++-7 228 env: TOOLSET=clang CXXSTD=14,17,2a HEADERS_ONLY=1 229 addons: 230 apt: 231 packages: 232 - clang-7 233 sources: 234 - ubuntu-toolchain-r-test 235 - llvm-toolchain-xenial-7 236 237 - os: linux 238 compiler: clang++-8 239 env: TOOLSET=clang CXXSTD=14,17,2a HEADERS_ONLY=1 240 addons: 241 apt: 242 packages: 243 - clang-8 244 sources: 245 - ubuntu-toolchain-r-test 246 - llvm-toolchain-xenial-8 247 248 - os: linux 249 compiler: clang++-9 250 env: TOOLSET=clang CXXSTD=14 251 addons: 252 apt: 253 packages: 254 - clang-9 255 sources: 256 - ubuntu-toolchain-r-test 257 - sourceline: 'deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main' 258 key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key' 259 260 - os: linux 261 compiler: clang++-9 262 env: TOOLSET=clang CXXSTD=17 263 addons: 264 apt: 265 packages: 266 - clang-9 267 sources: 268 - ubuntu-toolchain-r-test 269 - sourceline: 'deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main' 270 key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key' 271 272 - os: osx 273 compiler: clang++ 274 env: TOOLSET=clang CXXSTD=98 275 276# - os: osx 277# compiler: clang++ 278# env: TOOLSET=clang CXXSTD=11 279 280# - os: osx 281# compiler: clang++ 282# env: TOOLSET=clang CXXSTD=14 283 284 - os: osx 285 compiler: clang++ 286 env: TOOLSET=clang CXXSTD=1z 287 288install: 289 - GIT_FETCH_JOBS=8 290 - BOOST_BRANCH=develop 291 - if [ "$TRAVIS_BRANCH" = "master" ]; then BOOST_BRANCH=master; fi 292 - cd .. 293 - git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root 294 - cd boost-root 295 - git submodule init tools/build 296 - git submodule init libs/config 297 - git submodule init tools/boostdep 298 - git submodule update --jobs $GIT_FETCH_JOBS 299 - mkdir -p libs/thread 300 - cp -r $TRAVIS_BUILD_DIR/* libs/thread 301 - python tools/boostdep/depinst/depinst.py --git_args "--jobs $GIT_FETCH_JOBS" thread 302 - ./bootstrap.sh 303 - ./b2 headers 304 305script: 306 - |- 307 echo "using $TOOLSET : : $TRAVIS_COMPILER ;" > ~/user-config.jam 308 - ./b2 -j3 -l60 libs/thread/test${HEADERS_ONLY:+//test_self_contained_headers} toolset=$TOOLSET cxxstd=$CXXSTD 309 310notifications: 311 email: 312 on_success: always 313