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 | 4a9395b | 2018-05-24 00:23:22 -0400 | [diff] [blame] | 41 | |
| 42 | allow_failures: |
Davide Pesavento | dbee9bf | 2020-04-02 16:20:12 -0400 | [diff] [blame] | 43 | - arch: s390x # bug 5098 |
| 44 | - env: COMPILER=clang++-11 |
Davide Pesavento | 4a9395b | 2018-05-24 00:23:22 -0400 | [diff] [blame] | 45 | |
| 46 | fast_finish: true |
| 47 | |
Davide Pesavento | dbee9bf | 2020-04-02 16:20:12 -0400 | [diff] [blame] | 48 | before_install: |
| 49 | - | |
| 50 | : Adding apt repositories |
Davide Pesavento | 4a9395b | 2018-05-24 00:23:22 -0400 | [diff] [blame] | 51 | case ${COMPILER} in |
Davide Pesavento | dbee9bf | 2020-04-02 16:20:12 -0400 | [diff] [blame] | 52 | g++-9) |
| 53 | # https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages |
Davide Pesavento | 4a9395b | 2018-05-24 00:23:22 -0400 | [diff] [blame] | 54 | travis_retry sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test |
| 55 | travis_retry sudo apt-get -qq update |
Davide Pesavento | 4a9395b | 2018-05-24 00:23:22 -0400 | [diff] [blame] | 56 | ;; |
Davide Pesavento | dbee9bf | 2020-04-02 16:20:12 -0400 | [diff] [blame] | 57 | clang++-1?) |
| 58 | # https://apt.llvm.org/ |
Davide Pesavento | dfd704a | 2019-09-26 00:17:11 -0400 | [diff] [blame] | 59 | LLVM_REPO=${COMPILER/clang++/llvm-toolchain-${TRAVIS_DIST}} |
| 60 | 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] | 61 | 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] | 62 | travis_retry sudo apt-get -qq update |
Davide Pesavento | 4a9395b | 2018-05-24 00:23:22 -0400 | [diff] [blame] | 63 | ;; |
| 64 | esac |
Davide Pesavento | c2489b4 | 2017-10-28 17:19:08 -0400 | [diff] [blame] | 65 | |
Davide Pesavento | dfd704a | 2019-09-26 00:17:11 -0400 | [diff] [blame] | 66 | install: |
Davide Pesavento | dbee9bf | 2020-04-02 16:20:12 -0400 | [diff] [blame] | 67 | - | |
| 68 | : Installing C++ compiler |
| 69 | if [[ -n ${COMPILER} ]]; then |
| 70 | travis_retry sudo apt-get -qy install ${COMPILER/clang++/clang} |
| 71 | fi |
Davide Pesavento | dfd704a | 2019-09-26 00:17:11 -0400 | [diff] [blame] | 72 | |
Davide Pesavento | c2489b4 | 2017-10-28 17:19:08 -0400 | [diff] [blame] | 73 | before_script: |
Davide Pesavento | dbee9bf | 2020-04-02 16:20:12 -0400 | [diff] [blame] | 74 | - | |
| 75 | : Setting environment variables |
| 76 | if [[ -n ${COMPILER} ]]; then |
| 77 | export CXX=${COMPILER} |
| 78 | fi |
| 79 | case ${TRAVIS_OS_NAME} in |
| 80 | linux) export NODE_LABELS="Linux Ubuntu Ubuntu-18.04" ;; |
| 81 | osx) export NODE_LABELS="OSX OSX-$(sw_vers -productVersion | cut -d . -f -2)" ;; |
| 82 | esac |
| 83 | export WAF_JOBS=2 |
| 84 | - | |
| 85 | : Enabling workarounds |
| 86 | case "${TRAVIS_CPU_ARCH},${COMPILER}" in |
| 87 | ppc64le,g++-7) |
| 88 | # AddressSanitizer does not seem to be working |
| 89 | export DISABLE_ASAN=yes |
| 90 | ;; |
| 91 | *,clang++-8) |
| 92 | # https://bugs.llvm.org/show_bug.cgi?id=40808 |
| 93 | export DISABLE_ASAN=yes |
| 94 | ;; |
| 95 | esac |
Davide Pesavento | c2489b4 | 2017-10-28 17:19:08 -0400 | [diff] [blame] | 96 | - ${CXX:-c++} --version |
Davide Pesavento | c2489b4 | 2017-10-28 17:19:08 -0400 | [diff] [blame] | 97 | |
Yingdi Yu | 906c2ea | 2014-10-31 11:24:50 -0700 | [diff] [blame] | 98 | script: |
| 99 | - ./.jenkins |