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