Skip to content

Commit 37fa4b3

Browse files
pcloudsgitster
authored andcommitted
travis-ci: run gcc-8 on linux-gcc jobs
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ccdcbd5 commit 37fa4b3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@ compiler:
1616

1717
addons:
1818
apt:
19+
sources:
20+
- ubuntu-toolchain-r-test
1921
packages:
2022
- language-pack-is
2123
- git-svn
2224
- apache2
25+
- gcc-8
2326

2427
matrix:
2528
include:

ci/lib-travisci.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ export DEFAULT_TEST_TARGET=prove
9999
export GIT_PROVE_OPTS="--timer --jobs 3 --state=failed,slow,save"
100100
export GIT_TEST_OPTS="--verbose-log -x"
101101
export GIT_TEST_CLONE_2GB=YesPlease
102+
if [ "$jobname" = linux-gcc ]; then
103+
export CC=gcc-8
104+
fi
102105

103106
case "$jobname" in
104107
linux-clang|linux-gcc)

0 commit comments

Comments
 (0)