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