forked from stxxl/stxxl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (35 loc) · 2.09 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
37
38
39
language: cpp
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_FLAGS="" CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Debug -DNO_CXX11=ON"
- CMAKE_CC="gcc" CMAKE_CXX="g++" CMAKE_FLAGS="" CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Release -DNO_CXX11=ON"
# gcc-4.8 builds
- CMAKE_CC="gcc-4.8" CMAKE_CXX="g++-4.8" CMAKE_FLAGS="" CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Debug -DUSE_GNU_PARALLEL=OFF"
- CMAKE_CC="gcc-4.8" CMAKE_CXX="g++-4.8" CMAKE_FLAGS="" CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Debug -DUSE_GNU_PARALLEL=ON"
- CMAKE_CC="gcc-4.8" CMAKE_CXX="g++-4.8" CMAKE_FLAGS="" CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Release -DUSE_GNU_PARALLEL=OFF"
#-tb compiler error: - CMAKE_CC="gcc-4.8" CMAKE_FLAGS="" 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_FLAGS="" CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Debug -DUSE_GNU_PARALLEL=OFF" USE_BOOST=ON
# one 32-bit build
- CMAKE_CC="gcc" CMAKE_CXX="g++" CMAKE_FLAGS="-m32" CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Debug -DUSE_GNU_PARALLEL=OFF" USE_BOOST=OFF
# clang build
- CMAKE_CC="clang" CMAKE_CXX="clang++" CMAKE_FLAGS="-Wno-sign-conversion" 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 [ "$CMAKE_FLAGS" == "-m32" ]; then sudo apt-get install g++-multilib; 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
-DCMAKE_C_FLAGS="-Wconversion -Werror $CMAKE_FLAGS" -DCMAKE_CXX_FLAGS="-Wconversion -Werror $CMAKE_FLAGS"
-DBUILD_TESTS=ON -DTRY_COMPILE_HEADERS=ON
-DUSE_BOOST=$USE_BOOST $CMAKE_ARGS ../
script:
- make -j4 && ./tools/stxxl_tool info && ctest -V