blob: ed53635af35f4c407279936e751113023f52fbc3 [file] [log] [blame]
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -04001language: cpp
Davide Pesaventoc8681a32019-09-26 10:57:07 -04002dist: bionic
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -04003env:
4 global:
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -04005 - WAF_JOBS=2
6
7matrix:
8 include:
9 # Linux/gcc
10 # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages
11 - os: linux
12 env: COMPILER=g++-5
13 - os: linux
14 env: COMPILER=g++-6
15 - os: linux
16 env: COMPILER=g++-7
17 - os: linux
18 env: COMPILER=g++-8
Davide Pesaventof8d2ee62019-06-25 13:52:10 -040019 - os: linux
20 env: COMPILER=g++-9
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040021
22 # Linux/clang
23 # https://apt.llvm.org/
24 - os: linux
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040025 env: COMPILER=clang++-3.9
26 - os: linux
27 env: COMPILER=clang++-4.0
28 - os: linux
29 env: COMPILER=clang++-5.0
30 - os: linux
31 env: COMPILER=clang++-6.0
Davide Pesaventoc8681a32019-09-26 10:57:07 -040032 # disable AddressSanitizer with clang 7 and 8
Davide Pesavento6e90a0b2019-03-20 00:30:10 -040033 # due to https://bugs.llvm.org/show_bug.cgi?id=40808
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040034 - os: linux
Davide Pesavento6e90a0b2019-03-20 00:30:10 -040035 env: COMPILER=clang++-7 DISABLE_ASAN=yes
Davide Pesavento8f9d0622018-11-27 01:23:37 -050036 - os: linux
Davide Pesavento6e90a0b2019-03-20 00:30:10 -040037 env: COMPILER=clang++-8 DISABLE_ASAN=yes
38 - os: linux
Davide Pesaventoc8681a32019-09-26 10:57:07 -040039 env: COMPILER=clang++-9
40 - os: linux
41 env: COMPILER=clang++-10
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040042
43 # macOS/clang
Davide Pesavento6e90a0b2019-03-20 00:30:10 -040044 # https://docs.travis-ci.com/user/reference/osx/#macos-version
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040045 - os: osx
Davide Pesavento8f9d0622018-11-27 01:23:37 -050046 osx_image: xcode9.2
47 env: OSX_VERSION=10.12
48 - os: osx
49 osx_image: xcode9.4
50 env: OSX_VERSION=10.13
51 - os: osx
52 osx_image: xcode10.1
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040053 env: OSX_VERSION=10.13
Davide Pesavento6e90a0b2019-03-20 00:30:10 -040054 - os: osx
Davide Pesaventoc8681a32019-09-26 10:57:07 -040055 osx_image: xcode10.3
56 env: OSX_VERSION=10.14
57 - os: osx
58 osx_image: xcode11
Davide Pesavento6e90a0b2019-03-20 00:30:10 -040059 env: OSX_VERSION=10.14
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040060
61 allow_failures:
Davide Pesaventoc8681a32019-09-26 10:57:07 -040062 - env: COMPILER=clang++-10
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040063
64 fast_finish: true
65
Davide Pesaventoc8681a32019-09-26 10:57:07 -040066before_install: |
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040067 case ${COMPILER} in
Davide Pesaventoc8681a32019-09-26 10:57:07 -040068 g++-[567]|clang++-[3456].*)
Davide Pesavento6e90a0b2019-03-20 00:30:10 -040069 ;;
70 g++-*)
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040071 travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
72 travis_retry sudo apt-get -qq update
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040073 ;;
74 clang++-*)
Davide Pesaventoc8681a32019-09-26 10:57:07 -040075 LLVM_REPO=${COMPILER/clang++/llvm-toolchain-${TRAVIS_DIST}}
76 travis_retry wget -nv -O - "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add -
77 travis_retry sudo add-apt-repository -y "deb http://apt.llvm.org/${TRAVIS_DIST}/ ${LLVM_REPO%-10} main"
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040078 travis_retry sudo apt-get -qq update
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040079 ;;
80 esac
81
Davide Pesaventoc8681a32019-09-26 10:57:07 -040082install:
83 - if [[ -n ${COMPILER} ]]; then travis_retry sudo apt-get -qy install "${COMPILER/clang++/clang}"; fi
84
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040085before_script:
Davide Pesaventoc8681a32019-09-26 10:57:07 -040086 - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-18.04"; fi
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040087 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi
Davide Pesavento6e90a0b2019-03-20 00:30:10 -040088 - if [[ ${OSX_VERSION} == 10.12 ]]; then brew update; fi
Davide Pesavento8f9d0622018-11-27 01:23:37 -050089 # workaround for https://github.com/Homebrew/homebrew-core/issues/26358
90 - if [[ ${OSX_VERSION} == 10.12 ]]; then brew outdated python || brew upgrade python; fi
91 # workaround for https://github.com/travis-ci/travis-ci/issues/6688
92 - if [[ ${OSX_VERSION} == 10.12 ]]; then /usr/bin/yes | pip2 uninstall numpy || true; fi
Alexander Afanasyev6e64ac92018-06-14 17:25:38 -040093 - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi
94 - ${CXX:-c++} --version
95 - python --version
96
97script:
98 - ./.jenkins