aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-07-18 01:27:05 +0200
committerGitHub <noreply@github.com>2019-07-18 01:27:05 +0200
commit3d356c14df523472571a75e58e69e3e47c4999c4 (patch)
tree3ea234569657a65aefc9a33b766939dad55ce683
parent8499e18615f3a29a24deed78d12a6862995e829c (diff)
downloadrneovim-3d356c14df523472571a75e58e69e3e47c4999c4.tar.gz
rneovim-3d356c14df523472571a75e58e69e3e47c4999c4.tar.bz2
rneovim-3d356c14df523472571a75e58e69e3e47c4999c4.zip
ci: Travis: use gcc9 with gcov job [skip appveyor] (#10480)
* ci: Travis: use gcc-9 in gcov job * ci: Travis: use CCACHE_CPP2=1 This is required to avoid warnings with newer gcc/clang. Follow-up to: https://github.com/neovim/neovim/pull/10533
-rw-r--r--.travis.yml72
1 files changed, 40 insertions, 32 deletions
diff --git a/.travis.yml b/.travis.yml
index e6767404ae..0f6924dc63 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -46,8 +46,8 @@ env:
- CCACHE_COMPRESS=1
- CCACHE_SLOPPINESS=time_macros,file_macro
- CCACHE_BASEDIR="$TRAVIS_BUILD_DIR"
- # Default since 3.3, but Travis (Xenial) has 3.2.4; workaround (#10533).
- - CCACHE_HASHDIR=1
+ # Default since 3.3, but Travis (Xenial) has 3.2.4; required with newer gcc/clang.
+ - CCACHE_CPP2=1
anchors:
envs: &common-job-env
@@ -55,6 +55,34 @@ anchors:
# adds the target branch to the cache key.
FOR_TRAVIS_CACHE=$TRAVIS_BRANCH
+addons:
+ apt:
+ packages: &common-apt-packages
+ - apport
+ - autoconf
+ - automake
+ - build-essential
+ - clang-4.0
+ - cmake
+ - cscope
+ - gcc-multilib
+ - gdb
+ - gperf
+ - language-pack-tr
+ - libc6-dev-i386
+ - libtool-bin
+ - locales
+ - ninja-build
+ - pkg-config
+ - unzip
+ - valgrind
+ - xclip
+ homebrew:
+ update: true
+ packages:
+ - ccache
+ - ninja
+
jobs:
include:
- stage: baseline
@@ -106,14 +134,22 @@ jobs:
env:
- *common-job-env
- - name: gcc-coverage
+ - name: gcc-coverage (gcc 9)
os: linux
- compiler: gcc
+ compiler: gcc-9
env:
- GCOV=gcov
- CMAKE_FLAGS="$CMAKE_FLAGS -DUSE_GCOV=ON"
- GCOV_ERROR_FILE="/tmp/libgcov-errors.log"
- *common-job-env
+ addons:
+ apt:
+ sources:
+ - sourceline: 'ppa:ubuntu-toolchain-r/test'
+ packages:
+ - *common-apt-packages
+ - gcc-9
+
- name: clang-tsan
os: linux
compiler: clang
@@ -130,34 +166,6 @@ before_script: ci/before_script.sh
script: ci/script.sh
before_cache: ci/before_cache.sh
-addons:
- apt:
- packages:
- - apport
- - autoconf
- - automake
- - build-essential
- - clang-4.0
- - cmake
- - cscope
- - gcc-multilib
- - gdb
- - gperf
- - language-pack-tr
- - libc6-dev-i386
- - libtool-bin
- - locales
- - ninja-build
- - pkg-config
- - unzip
- - valgrind
- - xclip
- homebrew:
- update: true
- packages:
- - ccache
- - ninja
-
branches:
only:
- master