summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2019-10-20 09:09:22 +0200
committerAkim Demaille <akim.demaille@gmail.com>2019-10-20 17:57:28 +0200
commit4e0de4df8c5adc82f80e159d9ba8fbb25c043a36 (patch)
tree52783bd3a5fb84c2403b4fb9e93bfbb2c155894d /.travis.yml
parent97d6da0c5b45c481699a3c688fcc5e73375f612f (diff)
downloadbison-4e0de4df8c5adc82f80e159d9ba8fbb25c043a36.tar.gz
CI: try GCC9 and Clang9
The logs show: Disallowing sources: llvm-toolchain-bionic-8, ubuntu-toolchain-r-test To add unlisted APT sources, follow instructions in https://docs.travis-ci.com/user/installing-dependencies#Installing-Packages-with-the-APT-Addon * .travis.yml: Remove a few apt sources which are ignored in Bionic (e.g., see https://github.com/travis-ci/apt-source-safelist/issues/410). Where needed, use sources/sourceline instead. Also, don't use -DNDEBUG with older builds.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml74
1 files changed, 48 insertions, 26 deletions
diff --git a/.travis.yml b/.travis.yml
index e51ebc4a..5d00e89c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -79,44 +79,48 @@ jobs:
# Start with three completely different environments, to get
# errors asap.
- - name: "GCC 8 -O3"
+ - name: "GCC 9 -O3"
stage: test
os: linux
dist: bionic
addons:
apt:
- packages:
- - g++-8
+ sources:
+ # See https://github.com/travis-ci/apt-source-safelist/issues/410.
+ - sourceline: 'ppa:ubuntu-toolchain-r/test'
+ packages: g++-9
env:
- - MATRIX_EVAL="CC=gcc-8 && CXX=g++-8 && CONFIGUREFLAGS='CPPFLAGS=-DNDEBUG CFLAGS=-O3 CXXFLAGS=-O3'"
+ - MATRIX_EVAL="CC=gcc-9 && CXX=g++-9 && CONFIGUREFLAGS='CPPFLAGS=-DNDEBUG CFLAGS=-O3 CXXFLAGS=-O3'"
# ASAN is time consuming, and we timeout the 50min granted by
# Travis if we run all the tests in one go. Run in two parts.
- - name: "Clang 8 libc++ and ASAN part 1"
+ - name: "Clang 9 libc++ and ASAN part 1"
stage: test
os: linux
dist: bionic
- addons: &clang8
+ addons: &clang9
apt:
sources:
- - llvm-toolchain-bionic-8
- - ubuntu-toolchain-r-test
+ # See https://github.com/travis-ci/apt-source-safelist/issues/410.
+ - sourceline: 'ppa:ubuntu-toolchain-r/test'
+ - sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main'
+ key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
packages:
- - clang-8
- - libc++-8-dev
- - libc++abi-8-dev
+ - clang-9
+ - libc++-9-dev
+ - libc++abi-9-dev
env:
# Do not use ASAN with ubuntu's libc++: https://bugs.llvm.org/show_bug.cgi?id=17379
- - MATRIX_EVAL="PART=1 CC='clang-8 -fsanitize=address' CXX='clang++-8 -fsanitize=address -stdlib=libc++'"
+ - MATRIX_EVAL="PART=1 CC='clang-9 -fsanitize=address' CXX='clang++-9 -fsanitize=address -stdlib=libc++'"
- - name: "Clang 8 libc++ and ASAN part 2"
+ - name: "Clang 9 libc++ and ASAN part 2"
stage: test
os: linux
dist: bionic
- addons: *clang8
+ addons: *clang9
env:
# Do not use ASAN with ubuntu's libc++: https://bugs.llvm.org/show_bug.cgi?id=17379
- - MATRIX_EVAL="PART=2 CC='clang-8 -fsanitize=address' CXX='clang++-8 -fsanitize=address -stdlib=libc++'"
+ - MATRIX_EVAL="PART=2 CC='clang-9 -fsanitize=address' CXX='clang++-9 -fsanitize=address -stdlib=libc++'"
# Currently no longer works (https://github.com/nemequ/icc-travis/issues/15).
# - name: "ICC"
@@ -140,17 +144,26 @@ jobs:
## GCC. ##
## ----- ##
- - name: "GCC 7 with sanitizers"
+ - name: "GCC 8 with sanitizers"
os: linux
dist: bionic
addons:
apt:
- packages:
- - g++-7
+ packages: g++-8
env:
- - MATRIX_EVAL="CC='gcc-7 -fsanitize=undefined,address -fno-omit-frame-pointer' CXX='g++-7 -fsanitize=undefined,address -fno-omit-frame-pointer'"
+ - MATRIX_EVAL="CC='gcc-8 -fsanitize=undefined,address -fno-omit-frame-pointer' CXX='g++-8 -fsanitize=undefined,address -fno-omit-frame-pointer'"
- PART=1
+ - name: "GCC 8"
+ stage: test
+ os: linux
+ dist: bionic
+ addons:
+ apt:
+ packages: g++-8
+ env:
+ - MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
+
- name: "GCC 7"
stage: test
os: linux
@@ -244,24 +257,34 @@ jobs:
## Clang. ##
## ------- ##
- - name: "Clang 7 -O3 and libc++"
+ - name: "Clang 8 -O3"
+ stage: test
+ os: linux
+ dist: bionic
+ addons:
+ apt:
+ packages:
+ - clang-8
+ - libc++-8-dev
+ - libc++abi-8-dev
+ env:
+ - MATRIX_EVAL="CC=clang-8 && CXX='clang++-8 -stdlib=libc++'"
+ - CONFIGUREFLAGS='CPPFLAGS=-DNDEBUG CFLAGS=-O3 CXXFLAGS=-O3'
+
+ - name: "Clang 7"
stage: test
os: linux
dist: bionic
addons:
apt:
- sources:
- - llvm-toolchain-bionic-7
- - ubuntu-toolchain-r-test
packages:
- clang-7
- libc++-7-dev
- libc++abi-7-dev
env:
- MATRIX_EVAL="CC=clang-7 && CXX='clang++-7 -stdlib=libc++'"
- - CONFIGUREFLAGS='CPPFLAGS=-DNDEBUG CFLAGS=-O3 CXXFLAGS=-O3'
- - name: "Clang 6 -O3 and libc++"
+ - name: "Clang 6 and libc++"
stage: test
os: linux
dist: xenial
@@ -275,7 +298,6 @@ jobs:
- libc++-dev
env:
- MATRIX_EVAL="CC=clang-6.0 && CXX='clang++-6.0 -stdlib=libc++'"
- - CONFIGUREFLAGS='CPPFLAGS=-DNDEBUG CFLAGS=-O3 CXXFLAGS=-O3'
- name: "Clang 5"
stage: test