-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (31 loc) · 1.69 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
language: cpp
branches:
only:
- master
env:
global:
# limit parallel threads (default is 32!)
- OMP_NUM_THREADS=4
matrix:
# gcc builds (default configurations, uses gnu_parallel without boost)
- CMAKE_CC="gcc" CMAKE_CXX="g++" CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Debug -DNO_CXX11=ON"
- CMAKE_CC="gcc" CMAKE_CXX="g++" CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Release -DNO_CXX11=ON"
# gcc-4.8 builds
- CMAKE_CC="gcc-4.8" CMAKE_CXX="g++-4.8" CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Debug -DUSE_GNU_PARALLEL=OFF"
- CMAKE_CC="gcc-4.8" CMAKE_CXX="g++-4.8" CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Debug -DUSE_GNU_PARALLEL=ON"
- CMAKE_CC="gcc-4.8" CMAKE_CXX="g++-4.8" CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Release -DUSE_GNU_PARALLEL=OFF"
#-tb compiler error: - CMAKE_CC="gcc-4.8" CMAKE_CXX="g++-4.8" CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Release -DUSE_GNU_PARALLEL=ON"
# one boost build
- CMAKE_CC="gcc" CMAKE_CXX="g++" CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Debug -DUSE_GNU_PARALLEL=OFF" USE_BOOST=ON
# clang builds
- CMAKE_CC="clang" CMAKE_CXX="clang++" CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Debug"
- CMAKE_CC="clang" CMAKE_CXX="clang++" CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Release"
install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get -qq update
- if [ "$CMAKE_CXX" == "g++-4.8" ]; then sudo apt-get install g++-4.8; fi
- if [ "$USE_BOOST" == "ON" ]; then sudo apt-get install libboost-all-dev; fi
before_script:
- mkdir build && cd build && cmake -DCMAKE_C_COMPILER=$CMAKE_CC -DCMAKE_CXX_COMPILER=$CMAKE_CXX -DBUILD_TESTS=ON -DTRY_COMPILE_HEADERS=ON -DUSE_BOOST=$USE_BOOST $CMAKE_ARGS ..
script:
- make -j4 && ./tools/stxxl_tool info && make test