Skip to content

Commit d0fd2a9

Browse files
committed
Travis: Perform the CMake build (but not the tests) in the first stage
1 parent 020e88e commit d0fd2a9

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.travis.yml

+22
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,28 @@ jobs:
109109
- EXTRA_CXXFLAGS="-D_GLIBCXX_DEBUG"
110110
script: echo "Tests are run in the next stage."
111111

112+
# cmake build using g++-5
113+
- stage: Linter + Doxygen + non-debug Ubuntu/gcc-5 build
114+
os: linux
115+
compiler: gcc
116+
cache: ccache
117+
env:
118+
- BUILD_SYSTEM=cmake
119+
addons:
120+
apt:
121+
sources:
122+
- ubuntu-toolchain-r-test
123+
packages:
124+
- g++-5
125+
before_install:
126+
- mkdir bin ; ln -s /usr/bin/gcc-5 bin/gcc
127+
install:
128+
- ccache -z
129+
- ccache --max-size=1G
130+
- cmake -H. -Bbuild '-DCMAKE_BUILD_TYPE=Release' '-DCMAKE_CXX_COMPILER=/usr/bin/g++-5'
131+
- cmake --build build -- -j4
132+
script: echo "Tests are run in the next stage."
133+
112134
# Ubuntu Linux with glibc using g++-5
113135
- stage: Test different OS/CXX/Flags
114136
os: linux

0 commit comments

Comments
 (0)