Skip to content

Commit 85a6dae

Browse files
refackrvagg
authored andcommitted
build,meta: switch to gcc-4.9 on travis
The version of `clang` provided in the Travis linux image uses libstdc++4.8 whice is below our minimal supported version. Switching to `make test -j1` is to avoid races during the test cycle causes by the main target being "unstable", that is it always builds some files, and relinks the binary, which is used by the test procedure. PR-URL: #23778 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Richard Lau <[email protected]>
1 parent 02209c5 commit 85a6dae

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.travis.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
language: cpp
2-
compiler:
3-
- clang
42
sudo: false
53
cache: ccache
64
os: linux
@@ -15,12 +13,15 @@ matrix:
1513
# Lint the first commit in the PR.
1614
- \[ -z "$TRAVIS_COMMIT_RANGE" \] || (echo -e '\nLinting the commit message according to the guidelines at https://goo.gl/p2fr5Q\n' && git log $TRAVIS_COMMIT_RANGE --pretty=format:'%h' --no-merges | tail -1 | xargs npx -q core-validate-commit --no-validate-metadata)
1715
- name: "Test Suite"
16+
addons:
17+
apt:
18+
sources:
19+
- ubuntu-toolchain-r-test
20+
packages:
21+
- g++-4.9
1822
install:
23+
- export CC='ccache gcc-4.9' CXX='ccache g++-4.9' JOBS=2
1924
- ./configure
2025
- make -j2 V=
2126
script:
22-
- make -j2 test
23-
before_install:
24-
- export CXX="ccache clang++ -Qunused-arguments"
25-
- export CC="ccache clang -Qunused-arguments -Wno-unknown-warning-option"
26-
- export JOBS=2
27+
- PARALLEL_ARGS='--flaky-tests=skip' make -j1 test

0 commit comments

Comments
 (0)