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