Skip to content

Commit 0664ccf

Browse files
committed
Travis: Perform the CMake build (but not the tests) in the first stage
1 parent 4a812b3 commit 0664ccf

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,28 @@ jobs:
8484
- EXTRA_CXXFLAGS="-D_GLIBCXX_DEBUG"
8585
script: echo "Tests are run in the next stage."
8686

87+
# cmake build using g++-5
88+
- stage: Linter + Doxygen + non-debug Ubuntu/gcc-5 build
89+
os: linux
90+
compiler: gcc
91+
cache: ccache
92+
env:
93+
- BUILD_SYSTEM=cmake
94+
addons:
95+
apt:
96+
sources:
97+
- ubuntu-toolchain-r-test
98+
packages:
99+
- g++-5
100+
before_install:
101+
- mkdir bin ; ln -s /usr/bin/gcc-5 bin/gcc
102+
install:
103+
- ccache -z
104+
- ccache --max-size=1G
105+
- cmake -H. -Bbuild '-DCMAKE_BUILD_TYPE=Release' '-DCMAKE_CXX_COMPILER=/usr/bin/g++-5'
106+
- cmake --build build -- -j4
107+
script: echo "Tests are run in the next stage."
108+
87109
# Ubuntu Linux with glibc using g++-5
88110
- stage: Test different OS/CXX/Flags
89111
os: linux

0 commit comments

Comments
 (0)