blob: ed53635af35f4c407279936e751113023f52fbc3 [file] [log] [blame]
Davide Pesavento437adfe2018-01-11 02:20:42 -05001language: cpp
Davide Pesaventod21d83d2019-09-30 22:05:44 -04002dist: bionic
Davide Pesavento813df802017-08-20 20:53:54 -04003env:
4 global:
Davide Pesavento813df802017-08-20 20:53:54 -04005 - WAF_JOBS=2
Davide Pesavento6a81b772017-08-20 18:43:46 -04006
Alexander Afanasyev5ec9ae42016-07-28 14:30:21 -07007matrix:
8 include:
Davide Pesavento6a81b772017-08-20 18:43:46 -04009 # Linux/gcc
Davide Pesavento437adfe2018-01-11 02:20:42 -050010 # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages
Alexander Afanasyev5ec9ae42016-07-28 14:30:21 -070011 - os: linux
Davide Pesavento437adfe2018-01-11 02:20:42 -050012 env: COMPILER=g++-5
Davide Pesavento437adfe2018-01-11 02:20:42 -050013 - os: linux
14 env: COMPILER=g++-6
Davide Pesavento437adfe2018-01-11 02:20:42 -050015 - os: linux
16 env: COMPILER=g++-7
Davide Pesaventoa08dc3f2018-05-24 00:40:28 -040017 - os: linux
18 env: COMPILER=g++-8
Davide Pesaventocf220532019-06-25 13:43:17 -040019 - os: linux
20 env: COMPILER=g++-9
Davide Pesavento6a81b772017-08-20 18:43:46 -040021
22 # Linux/clang
Davide Pesavento437adfe2018-01-11 02:20:42 -050023 # https://apt.llvm.org/
Alexander Afanasyev5ec9ae42016-07-28 14:30:21 -070024 - os: linux
Davide Pesaventoa08dc3f2018-05-24 00:40:28 -040025 env: COMPILER=clang++-3.9
Davide Pesavento437adfe2018-01-11 02:20:42 -050026 - os: linux
27 env: COMPILER=clang++-4.0
Davide Pesavento437adfe2018-01-11 02:20:42 -050028 - os: linux
29 env: COMPILER=clang++-5.0
Davide Pesaventoa08dc3f2018-05-24 00:40:28 -040030 - os: linux
31 env: COMPILER=clang++-6.0
Davide Pesaventod21d83d2019-09-30 22:05:44 -040032 # disable AddressSanitizer with clang 7 and 8
Davide Pesavento0b0eddd2019-03-19 14:42:15 -040033 # due to https://bugs.llvm.org/show_bug.cgi?id=40808
Davide Pesaventoa08dc3f2018-05-24 00:40:28 -040034 - os: linux
Davide Pesavento0b0eddd2019-03-19 14:42:15 -040035 env: COMPILER=clang++-7 DISABLE_ASAN=yes
36 - os: linux
37 env: COMPILER=clang++-8 DISABLE_ASAN=yes
38 - os: linux
Davide Pesaventod21d83d2019-09-30 22:05:44 -040039 env: COMPILER=clang++-9
40 - os: linux
41 env: COMPILER=clang++-10
Davide Pesavento6a81b772017-08-20 18:43:46 -040042
43 # macOS/clang
Davide Pesavento0b0eddd2019-03-19 14:42:15 -040044 # https://docs.travis-ci.com/user/reference/osx/#macos-version
Davide Pesavento437adfe2018-01-11 02:20:42 -050045 - os: osx
Davide Pesavento0b0eddd2019-03-19 14:42:15 -040046 osx_image: xcode9.2
47 env: OSX_VERSION=10.12
48 - os: osx
49 osx_image: xcode9.4
Davide Pesaventoa08dc3f2018-05-24 00:40:28 -040050 env: OSX_VERSION=10.13
Davide Pesavento0b0eddd2019-03-19 14:42:15 -040051 - os: osx
52 osx_image: xcode10.1
53 env: OSX_VERSION=10.13
54 - os: osx
Davide Pesaventod21d83d2019-09-30 22:05:44 -040055 osx_image: xcode10.3
56 env: OSX_VERSION=10.14
57 - os: osx
58 osx_image: xcode11
Davide Pesavento0b0eddd2019-03-19 14:42:15 -040059 env: OSX_VERSION=10.14
Davide Pesaventoa08dc3f2018-05-24 00:40:28 -040060
61 allow_failures:
Davide Pesaventod21d83d2019-09-30 22:05:44 -040062 - env: COMPILER=clang++-10
Davide Pesaventoa08dc3f2018-05-24 00:40:28 -040063
64 fast_finish: true
65
Davide Pesaventod21d83d2019-09-30 22:05:44 -040066before_install: |
Davide Pesaventoa08dc3f2018-05-24 00:40:28 -040067 case ${COMPILER} in
Davide Pesaventod21d83d2019-09-30 22:05:44 -040068 g++-[567]|clang++-[3456].*)
Davide Pesavento0b0eddd2019-03-19 14:42:15 -040069 ;;
70 g++-*)
Davide Pesaventoa08dc3f2018-05-24 00:40:28 -040071 travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
72 travis_retry sudo apt-get -qq update
Davide Pesaventoa08dc3f2018-05-24 00:40:28 -040073 ;;
74 clang++-*)
Davide Pesaventod21d83d2019-09-30 22:05:44 -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"
Davide Pesaventoa08dc3f2018-05-24 00:40:28 -040078 travis_retry sudo apt-get -qq update
Davide Pesaventoa08dc3f2018-05-24 00:40:28 -040079 ;;
80 esac
Davide Pesavento6a81b772017-08-20 18:43:46 -040081
Davide Pesaventod21d83d2019-09-30 22:05:44 -040082install:
83 - if [[ -n ${COMPILER} ]]; then travis_retry sudo apt-get -qy install "${COMPILER/clang++/clang}"; fi
84
Davide Pesavento6a81b772017-08-20 18:43:46 -040085before_script:
Davide Pesaventod21d83d2019-09-30 22:05:44 -040086 - if [[ ${TRAVIS_OS_NAME} == linux ]]; then export NODE_LABELS="Linux Ubuntu Ubuntu-18.04"; fi
Davide Pesavento437adfe2018-01-11 02:20:42 -050087 - if [[ ${TRAVIS_OS_NAME} == osx ]]; then export NODE_LABELS="OSX OSX-${OSX_VERSION}"; fi
Davide Pesavento0b0eddd2019-03-19 14:42:15 -040088 - if [[ ${OSX_VERSION} == 10.12 ]]; then brew update; fi
89 # 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
Davide Pesavento437adfe2018-01-11 02:20:42 -050093 - if [[ -n ${COMPILER} ]]; then export CXX=${COMPILER}; fi
Davide Pesavento6a81b772017-08-20 18:43:46 -040094 - ${CXX:-c++} --version
95 - python --version
96
Alexander Afanasyev24ed83a2015-03-30 11:06:50 -070097script:
98 - ./.jenkins