Davide Pesavento | a122abf | 2020-04-30 21:55:46 -0400 | [diff] [blame] | 1 | version: ~> 1.0 |
Davide Pesavento | 437adfe | 2018-01-11 02:20:42 -0500 | [diff] [blame] | 2 | language: cpp |
Davide Pesavento | a122abf | 2020-04-30 21:55:46 -0400 | [diff] [blame] | 3 | os: linux |
Davide Pesavento | d21d83d | 2019-09-30 22:05:44 -0400 | [diff] [blame] | 4 | dist: bionic |
Davide Pesavento | a122abf | 2020-04-30 21:55:46 -0400 | [diff] [blame] | 5 | |
| 6 | arch: |
| 7 | - amd64 |
| 8 | - arm64 |
| 9 | - ppc64le |
| 10 | - s390x |
| 11 | |
Davide Pesavento | 813df80 | 2017-08-20 20:53:54 -0400 | [diff] [blame] | 12 | env: |
Davide Pesavento | a122abf | 2020-04-30 21:55:46 -0400 | [diff] [blame] | 13 | - COMPILER=g++-7 |
| 14 | - COMPILER=g++-9 |
| 15 | - COMPILER=clang++-6.0 |
| 16 | - COMPILER=clang++-9 |
Davide Pesavento | 6a81b77 | 2017-08-20 18:43:46 -0400 | [diff] [blame] | 17 | |
Davide Pesavento | a122abf | 2020-04-30 21:55:46 -0400 | [diff] [blame] | 18 | jobs: |
Alexander Afanasyev | 5ec9ae4 | 2016-07-28 14:30:21 -0700 | [diff] [blame] | 19 | include: |
Davide Pesavento | a122abf | 2020-04-30 21:55:46 -0400 | [diff] [blame] | 20 | # Linux |
| 21 | - env: COMPILER=g++-5 |
| 22 | - env: COMPILER=g++-6 |
| 23 | - env: COMPILER=g++-8 |
| 24 | - env: COMPILER=clang++-4.0 |
| 25 | - env: COMPILER=clang++-5.0 |
| 26 | - env: COMPILER=clang++-7 |
| 27 | - env: COMPILER=clang++-8 |
| 28 | - env: COMPILER=clang++-10 |
| 29 | - env: COMPILER=clang++-11 |
Davide Pesavento | 4a90b9a | 2020-08-07 17:44:33 -0400 | [diff] [blame^] | 30 | - env: COMPILER=clang++-12 |
Davide Pesavento | 6a81b77 | 2017-08-20 18:43:46 -0400 | [diff] [blame] | 31 | |
Davide Pesavento | a122abf | 2020-04-30 21:55:46 -0400 | [diff] [blame] | 32 | # macOS |
Davide Pesavento | 0b0eddd | 2019-03-19 14:42:15 -0400 | [diff] [blame] | 33 | - os: osx |
| 34 | osx_image: xcode9.4 |
Davide Pesavento | a122abf | 2020-04-30 21:55:46 -0400 | [diff] [blame] | 35 | env: # default compiler |
Davide Pesavento | 0b0eddd | 2019-03-19 14:42:15 -0400 | [diff] [blame] | 36 | - os: osx |
| 37 | osx_image: xcode10.1 |
Davide Pesavento | a122abf | 2020-04-30 21:55:46 -0400 | [diff] [blame] | 38 | env: # default compiler |
Davide Pesavento | 0b0eddd | 2019-03-19 14:42:15 -0400 | [diff] [blame] | 39 | - os: osx |
Davide Pesavento | d21d83d | 2019-09-30 22:05:44 -0400 | [diff] [blame] | 40 | osx_image: xcode10.3 |
Davide Pesavento | a122abf | 2020-04-30 21:55:46 -0400 | [diff] [blame] | 41 | env: # default compiler |
Davide Pesavento | d21d83d | 2019-09-30 22:05:44 -0400 | [diff] [blame] | 42 | - os: osx |
Davide Pesavento | a122abf | 2020-04-30 21:55:46 -0400 | [diff] [blame] | 43 | osx_image: xcode11.3 |
| 44 | env: # default compiler |
| 45 | - os: osx |
Davide Pesavento | 4a90b9a | 2020-08-07 17:44:33 -0400 | [diff] [blame^] | 46 | osx_image: xcode11.6 |
| 47 | env: # default compiler |
| 48 | - os: osx |
| 49 | osx_image: xcode12 |
Davide Pesavento | a122abf | 2020-04-30 21:55:46 -0400 | [diff] [blame] | 50 | env: # default compiler |
Davide Pesavento | a08dc3f | 2018-05-24 00:40:28 -0400 | [diff] [blame] | 51 | |
| 52 | allow_failures: |
Davide Pesavento | a122abf | 2020-04-30 21:55:46 -0400 | [diff] [blame] | 53 | - env: COMPILER=g++-5 |
| 54 | - env: COMPILER=g++-6 |
| 55 | - env: COMPILER=clang++-4.0 |
Davide Pesavento | 4a90b9a | 2020-08-07 17:44:33 -0400 | [diff] [blame^] | 56 | - env: COMPILER=clang++-12 |
Davide Pesavento | a08dc3f | 2018-05-24 00:40:28 -0400 | [diff] [blame] | 57 | |
| 58 | fast_finish: true |
| 59 | |
Davide Pesavento | a122abf | 2020-04-30 21:55:46 -0400 | [diff] [blame] | 60 | before_install: |
| 61 | - | |
| 62 | : Adding apt repositories |
Davide Pesavento | a08dc3f | 2018-05-24 00:40:28 -0400 | [diff] [blame] | 63 | case ${COMPILER} in |
Davide Pesavento | a122abf | 2020-04-30 21:55:46 -0400 | [diff] [blame] | 64 | g++-9) |
| 65 | # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages |
Davide Pesavento | a08dc3f | 2018-05-24 00:40:28 -0400 | [diff] [blame] | 66 | travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test |
| 67 | travis_retry sudo apt-get -qq update |
Davide Pesavento | a08dc3f | 2018-05-24 00:40:28 -0400 | [diff] [blame] | 68 | ;; |
Davide Pesavento | a122abf | 2020-04-30 21:55:46 -0400 | [diff] [blame] | 69 | clang++-1?) |
| 70 | # https://apt.llvm.org/ |
Davide Pesavento | d21d83d | 2019-09-30 22:05:44 -0400 | [diff] [blame] | 71 | LLVM_REPO=${COMPILER/clang++/llvm-toolchain-${TRAVIS_DIST}} |
| 72 | travis_retry wget -nv -O - "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add - |
Davide Pesavento | 4a90b9a | 2020-08-07 17:44:33 -0400 | [diff] [blame^] | 73 | travis_retry sudo add-apt-repository -y "deb http://apt.llvm.org/${TRAVIS_DIST}/ ${LLVM_REPO%-12} main" |
Davide Pesavento | a08dc3f | 2018-05-24 00:40:28 -0400 | [diff] [blame] | 74 | travis_retry sudo apt-get -qq update |
Davide Pesavento | a08dc3f | 2018-05-24 00:40:28 -0400 | [diff] [blame] | 75 | ;; |
| 76 | esac |
Davide Pesavento | 6a81b77 | 2017-08-20 18:43:46 -0400 | [diff] [blame] | 77 | |
Davide Pesavento | d21d83d | 2019-09-30 22:05:44 -0400 | [diff] [blame] | 78 | install: |
Davide Pesavento | a122abf | 2020-04-30 21:55:46 -0400 | [diff] [blame] | 79 | - | |
| 80 | : Installing C++ compiler |
| 81 | if [[ -n ${COMPILER} ]]; then |
| 82 | travis_retry sudo apt-get -qy install ${COMPILER/clang++/clang} |
| 83 | fi |
Davide Pesavento | d21d83d | 2019-09-30 22:05:44 -0400 | [diff] [blame] | 84 | |
Davide Pesavento | 6a81b77 | 2017-08-20 18:43:46 -0400 | [diff] [blame] | 85 | before_script: |
Davide Pesavento | a122abf | 2020-04-30 21:55:46 -0400 | [diff] [blame] | 86 | - | |
| 87 | : Setting environment variables |
| 88 | if [[ -n ${COMPILER} ]]; then |
| 89 | export CXX=${COMPILER} |
| 90 | fi |
| 91 | case ${TRAVIS_OS_NAME} in |
| 92 | linux) export NODE_LABELS="Linux Ubuntu Ubuntu-18.04" ;; |
| 93 | osx) export NODE_LABELS="OSX OSX-$(sw_vers -productVersion | cut -d . -f -2)" ;; |
| 94 | esac |
| 95 | export WAF_JOBS=2 |
| 96 | - | |
| 97 | : Enabling workarounds |
| 98 | case "${TRAVIS_CPU_ARCH},${COMPILER}" in |
| 99 | arm64,g++*) |
| 100 | # Avoid exceeding the per-job time limit |
| 101 | export JOB_NAME=limited-build |
| 102 | ;; |
| 103 | ppc64le,g++-7) |
| 104 | # AddressSanitizer does not seem to be working |
| 105 | export DISABLE_ASAN=yes |
| 106 | ;; |
| 107 | *,clang++-8) |
| 108 | # https://bugs.llvm.org/show_bug.cgi?id=40808 |
| 109 | export DISABLE_ASAN=yes |
| 110 | ;; |
| 111 | esac |
Davide Pesavento | 6a81b77 | 2017-08-20 18:43:46 -0400 | [diff] [blame] | 112 | - ${CXX:-c++} --version |
Davide Pesavento | 6a81b77 | 2017-08-20 18:43:46 -0400 | [diff] [blame] | 113 | |
Alexander Afanasyev | 24ed83a | 2015-03-30 11:06:50 -0700 | [diff] [blame] | 114 | script: |
| 115 | - ./.jenkins |