Skip to content

Commit

Permalink
travis-ci: run gcc-8 on linux-gcc jobs
Browse files Browse the repository at this point in the history
Switch from gcc-4.8 to gcc-8. Newer compilers come with more warning
checks (usually in -Wextra).  Since -Wextra is enabled in developer
mode (which is also enabled in travis), this lets travis report more
warnings before other people do it.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
pclouds authored and gitster committed May 21, 2018
1 parent ccdcbd5 commit 37fa4b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ compiler:

addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- language-pack-is
- git-svn
- apache2
- gcc-8

matrix:
include:
Expand Down
3 changes: 3 additions & 0 deletions ci/lib-travisci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ export DEFAULT_TEST_TARGET=prove
export GIT_PROVE_OPTS="--timer --jobs 3 --state=failed,slow,save"
export GIT_TEST_OPTS="--verbose-log -x"
export GIT_TEST_CLONE_2GB=YesPlease
if [ "$jobname" = linux-gcc ]; then
export CC=gcc-8
fi

case "$jobname" in
linux-clang|linux-gcc)
Expand Down

0 comments on commit 37fa4b3

Please sign in to comment.