blob: 136ded451b0ad0996791b10dedbbbf2c24c37362 [file] [log] [blame]
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -04001language: cpp
2dist: xenial
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -04003env:
4 global:
5 - JOB_NAME=limited-build
6 - WAF_JOBS=2
7
8matrix:
9 include:
10 # Linux/gcc
11 # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages
12 - os: linux
13 env: COMPILER=g++-5
14 - os: linux
15 env: COMPILER=g++-6
16 - os: linux
17 env: COMPILER=g++-7
18 - os: linux
19 env: COMPILER=g++-8
Davide Pesaventof8d2ee62019-06-25 13:52:10 -040020 - os: linux
21 env: COMPILER=g++-9
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040022
23 # Linux/clang
24 # https://apt.llvm.org/
25 - os: linux
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040026 env: COMPILER=clang++-3.8
27 - os: linux
28 env: COMPILER=clang++-3.9
29 - os: linux
30 env: COMPILER=clang++-4.0
31 - os: linux
32 env: COMPILER=clang++-5.0
33 - os: linux
34 env: COMPILER=clang++-6.0
Davide Pesavento6e90a0b2019-03-20 00:30:10 -040035 # temporarily disable AddressSanitizer on clang-7 and later
36 # due to https://bugs.llvm.org/show_bug.cgi?id=40808
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040037 - os: linux
Davide Pesavento6e90a0b2019-03-20 00:30:10 -040038 env: COMPILER=clang++-7 DISABLE_ASAN=yes
Davide Pesavento8f9d0622018-11-27 01:23:37 -050039 - os: linux
Davide Pesavento6e90a0b2019-03-20 00:30:10 -040040 env: COMPILER=clang++-8 DISABLE_ASAN=yes
41 - os: linux
42 env: COMPILER=clang++-9 DISABLE_ASAN=yes
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040043
44 # macOS/clang
Davide Pesavento6e90a0b2019-03-20 00:30:10 -040045 # https://docs.travis-ci.com/user/reference/osx/#macos-version
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040046 - os: osx
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040047 osx_image: xcode8.3
48 env: OSX_VERSION=10.12
49 - os: osx
Davide Pesavento8f9d0622018-11-27 01:23:37 -050050 osx_image: xcode9.2
51 env: OSX_VERSION=10.12
52 - os: osx
53 osx_image: xcode9.4
54 env: OSX_VERSION=10.13
55 - os: osx
56 osx_image: xcode10.1
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040057 env: OSX_VERSION=10.13
Davide Pesavento6e90a0b2019-03-20 00:30:10 -040058 - os: osx
59 osx_image: xcode10.2
60 env: OSX_VERSION=10.14
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040061
62 allow_failures:
Davide Pesavento6e90a0b2019-03-20 00:30:10 -040063 - env: COMPILER=clang++-9 DISABLE_ASAN=yes
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040064
65 fast_finish: true
66
67install: |
68 case ${COMPILER} in
Davide Pesavento6e90a0b2019-03-20 00:30:10 -040069 g++-5)
70 ;;
71 g++-*)
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040072 travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
73 travis_retry sudo apt-get -qq update
74 travis_retry sudo apt-get -qy install "${COMPILER}"
75 ;;
76 clang++-*)
77 CLANG_VERSION=${COMPILER/clang++}
78 if [[ ${CLANG_VERSION} != "-3."* ]]; then
Davide Pesavento8f9d0622018-11-27 01:23:37 -050079 travis_retry wget -nv -O - "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add -
Davide Pesavento6e90a0b2019-03-20 00:30:10 -040080 travis_retry sudo add-apt-repository -y "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial${CLANG_VERSION/-9} main"
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040081 fi
82 travis_retry sudo apt-get -qq update
83 travis_retry sudo apt-get -qy install "clang${CLANG_VERSION}"
84 ;;
85 esac
86
87before_script:
88 - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-16.04"; fi
89 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi
Davide Pesavento6e90a0b2019-03-20 00:30:10 -040090 - if [[ ${OSX_VERSION} == 10.12 ]]; then brew update; fi
Davide Pesavento8f9d0622018-11-27 01:23:37 -050091 # workaround for https://github.com/Homebrew/homebrew-core/issues/26358
92 - if [[ ${OSX_VERSION} == 10.12 ]]; then brew outdated python || brew upgrade python; fi
93 # workaround for https://github.com/travis-ci/travis-ci/issues/6688
94 - if [[ ${OSX_VERSION} == 10.12 ]]; then /usr/bin/yes | pip2 uninstall numpy || true; fi
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040095 - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi
96 - ${CXX:-c++} --version
97 - python --version
98
99script:
100 - ./.jenkins