Davide Pesavento | dbee9bf | 2020-04-02 16:20:12 -0400 | [diff] [blame] | 1 | version: ~> 1.0 |
Davide Pesavento | 4a9395b | 2018-05-24 00:23:22 -0400 | [diff] [blame] | 2 | language: cpp |
Davide Pesavento | dbee9bf | 2020-04-02 16:20:12 -0400 | [diff] [blame] | 3 | os: linux |
Davide Pesavento | dfd704a | 2019-09-26 00:17:11 -0400 | [diff] [blame] | 4 | dist: bionic |
Davide Pesavento | dbee9bf | 2020-04-02 16:20:12 -0400 | [diff] [blame] | 5 | |
| 6 | arch: |
| 7 | - amd64 |
| 8 | - arm64 |
| 9 | - ppc64le |
| 10 | - s390x |
| 11 | |
Alexander Afanasyev | f3192eb | 2016-12-19 17:11:20 -0800 | [diff] [blame] | 12 | env: |
Davide Pesavento | dbee9bf | 2020-04-02 16:20:12 -0400 | [diff] [blame] | 13 | - COMPILER=g++-7 |
| 14 | - COMPILER=g++-9 |
| 15 | - COMPILER=clang++-6.0 |
| 16 | - COMPILER=clang++-9 |
Davide Pesavento | c2489b4 | 2017-10-28 17:19:08 -0400 | [diff] [blame] | 17 | |
Davide Pesavento | dbee9bf | 2020-04-02 16:20:12 -0400 | [diff] [blame] | 18 | jobs: |
Alexander Afanasyev | f3192eb | 2016-12-19 17:11:20 -0800 | [diff] [blame] | 19 | include: |
Davide Pesavento | dbee9bf | 2020-04-02 16:20:12 -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 | c2489b4 | 2017-10-28 17:19:08 -0400 | [diff] [blame] | 27 | |
Davide Pesavento | dbee9bf | 2020-04-02 16:20:12 -0400 | [diff] [blame] | 28 | # macOS |
Davide Pesavento | 5188f31 | 2019-03-18 18:38:45 -0400 | [diff] [blame] | 29 | - os: osx |
| 30 | osx_image: xcode9.4 |
Davide Pesavento | dbee9bf | 2020-04-02 16:20:12 -0400 | [diff] [blame] | 31 | env: # default compiler |
Davide Pesavento | 5188f31 | 2019-03-18 18:38:45 -0400 | [diff] [blame] | 32 | - os: osx |
| 33 | osx_image: xcode10.1 |
Davide Pesavento | dbee9bf | 2020-04-02 16:20:12 -0400 | [diff] [blame] | 34 | env: # default compiler |
Davide Pesavento | 5188f31 | 2019-03-18 18:38:45 -0400 | [diff] [blame] | 35 | - os: osx |
Davide Pesavento | dfd704a | 2019-09-26 00:17:11 -0400 | [diff] [blame] | 36 | osx_image: xcode10.3 |
Davide Pesavento | dbee9bf | 2020-04-02 16:20:12 -0400 | [diff] [blame] | 37 | env: # default compiler |
Davide Pesavento | dfd704a | 2019-09-26 00:17:11 -0400 | [diff] [blame] | 38 | - os: osx |
Davide Pesavento | dbee9bf | 2020-04-02 16:20:12 -0400 | [diff] [blame] | 39 | osx_image: xcode11.3 |
| 40 | env: # default compiler |
Davide Pesavento | 5f408ae | 2020-07-15 21:17:04 -0400 | [diff] [blame] | 41 | - os: osx |
| 42 | osx_image: xcode11.6 |
| 43 | env: # default compiler |
| 44 | - os: osx |
| 45 | osx_image: xcode12 |
| 46 | env: # default compiler |
Davide Pesavento | 4a9395b | 2018-05-24 00:23:22 -0400 | [diff] [blame] | 47 | |
| 48 | allow_failures: |
Davide Pesavento | dbee9bf | 2020-04-02 16:20:12 -0400 | [diff] [blame] | 49 | - arch: s390x # bug 5098 |
| 50 | - env: COMPILER=clang++-11 |
Davide Pesavento | 4a9395b | 2018-05-24 00:23:22 -0400 | [diff] [blame] | 51 | |
| 52 | fast_finish: true |
| 53 | |
Davide Pesavento | dbee9bf | 2020-04-02 16:20:12 -0400 | [diff] [blame] | 54 | before_install: |
| 55 | - | |
| 56 | : Adding apt repositories |
Davide Pesavento | 4a9395b | 2018-05-24 00:23:22 -0400 | [diff] [blame] | 57 | case ${COMPILER} in |
Davide Pesavento | dbee9bf | 2020-04-02 16:20:12 -0400 | [diff] [blame] | 58 | g++-9) |
| 59 | # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages |
Davide Pesavento | 4a9395b | 2018-05-24 00:23:22 -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 | 4a9395b | 2018-05-24 00:23:22 -0400 | [diff] [blame] | 62 | ;; |
Davide Pesavento | dbee9bf | 2020-04-02 16:20:12 -0400 | [diff] [blame] | 63 | clang++-1?) |
| 64 | # https://apt.llvm.org/ |
Davide Pesavento | dfd704a | 2019-09-26 00:17:11 -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 | dbee9bf | 2020-04-02 16:20:12 -0400 | [diff] [blame] | 67 | travis_retry sudo add-apt-repository -y "deb http://apt.llvm.org/${TRAVIS_DIST}/ ${LLVM_REPO%-11} main" |
Davide Pesavento | 4a9395b | 2018-05-24 00:23:22 -0400 | [diff] [blame] | 68 | travis_retry sudo apt-get -qq update |
Davide Pesavento | 4a9395b | 2018-05-24 00:23:22 -0400 | [diff] [blame] | 69 | ;; |
| 70 | esac |
Davide Pesavento | c2489b4 | 2017-10-28 17:19:08 -0400 | [diff] [blame] | 71 | |
Davide Pesavento | dfd704a | 2019-09-26 00:17:11 -0400 | [diff] [blame] | 72 | install: |
Davide Pesavento | dbee9bf | 2020-04-02 16:20:12 -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 | dfd704a | 2019-09-26 00:17:11 -0400 | [diff] [blame] | 78 | |
Davide Pesavento | c2489b4 | 2017-10-28 17:19:08 -0400 | [diff] [blame] | 79 | before_script: |
Davide Pesavento | dbee9bf | 2020-04-02 16:20:12 -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 | c2489b4 | 2017-10-28 17:19:08 -0400 | [diff] [blame] | 102 | - ${CXX:-c++} --version |
Davide Pesavento | c2489b4 | 2017-10-28 17:19:08 -0400 | [diff] [blame] | 103 | |
Yingdi Yu | 906c2ea | 2014-10-31 11:24:50 -0700 | [diff] [blame] | 104 | script: |
| 105 | - ./.jenkins |