Skip to content

Commit 4e46d01

Browse files
committed
Travis: Only do a build in the first stage
Tests are run, otherwise using the very same configuration as the primary build, in the second stage. As all tasks within one stage run in parallel, the ~20mins that test execution takes will pass while also doing other work rather than blocking progress to the next stage. Via ccache we will avoid spending time for re-building.
1 parent a82f827 commit 4e46d01

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

.travis.yml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
include:
55

66
- &formatting-stage
7-
stage: Linter + Doxygen + non-debug Ubuntu/gcc-5 test
7+
stage: Linter + Doxygen + non-debug Ubuntu/gcc-5 build
88
env: NAME="clang-format"
99
addons:
1010
apt:
@@ -32,13 +32,13 @@ jobs:
3232
before_cache:
3333

3434
- &linter-stage
35-
stage: Linter + Doxygen + non-debug Ubuntu/gcc-5 test
35+
stage: Linter + Doxygen + non-debug Ubuntu/gcc-5 build
3636
env: NAME="CPP-LINT"
3737
install:
3838
script: scripts/travis_lint.sh
3939
before_cache:
4040

41-
- stage: Linter + Doxygen + non-debug Ubuntu/gcc-5 test
41+
- stage: Linter + Doxygen + non-debug Ubuntu/gcc-5 build
4242
env: NAME="DOXYGEN-CHECK"
4343
addons:
4444
apt:
@@ -62,7 +62,30 @@ jobs:
6262
- scripts/publish_doc.sh
6363

6464
# Ubuntu Linux with glibc using g++-5
65-
- stage: Linter + Doxygen + non-debug Ubuntu/gcc-5 test
65+
- stage: Linter + Doxygen + non-debug Ubuntu/gcc-5 build
66+
os: linux
67+
sudo: false
68+
compiler: gcc
69+
cache: ccache
70+
addons:
71+
apt:
72+
sources:
73+
- ubuntu-toolchain-r-test
74+
packages:
75+
- libwww-perl
76+
- g++-5
77+
- libubsan0
78+
- parallel
79+
before_install:
80+
- mkdir bin ; ln -s /usr/bin/gcc-5 bin/gcc
81+
# env: COMPILER=g++-5 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover -fno-omit-frame-pointer"
82+
env:
83+
- COMPILER="ccache /usr/bin/g++-5"
84+
- EXTRA_CXXFLAGS="-D_GLIBCXX_DEBUG"
85+
script: echo "Test are run in the next stage."
86+
87+
# Ubuntu Linux with glibc using g++-5
88+
- stage: Test different OS/CXX/Flags
6689
os: linux
6790
sudo: false
6891
compiler: gcc

0 commit comments

Comments
 (0)