forked from stxxl/foxxll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
88 lines (73 loc) · 2.12 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Travis-CI build script for Foxxll
language: cpp
sudo: false
dist: trusty
env:
global:
- OMP_NUM_THREADS=4
- TMPDIR=/tmp/
- FOXXLL_TEST_DISKDIR=$TMPDIR
git:
depth: 3
matrix:
include:
- env: CMAKE_CC="gcc-5" CMAKE_CXX="g++-5" COMPILER_FLAGS="" BUILD_TYPE="Release"
os: linux
addons: &gcc5
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- env: CMAKE_CC="gcc-5" CMAKE_CXX="g++-5" COMPILER_FLAGS="" BUILD_TYPE="RelWithAssert"
os: linux
addons: *gcc5
- env: CMAKE_CC="gcc-7" CMAKE_CXX="g++-7" COMPILER_FLAGS="" BUILD_TYPE="Release"
os: linux
addons: &gcc7
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- lcov
- env: CMAKE_CC="gcc-7" CMAKE_CXX="g++-7" COMPILER_FLAGS="" BUILD_TYPE="RelWithAssert" BUILD_COVERAGE="1"
os: linux
addons: *gcc7
- env: CMAKE_CC="clang-4.0" CMAKE_CXX="clang++-4.0" COMPILER_FLAGS="" BUILD_TYPE="RelWithAssert"
os: linux
dist: trusty
addons: &clang40
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-4.0
packages:
- clang-4.0
- env: CMAKE_CC="clang" CMAKE_CXX="clang++" COMPILER_FLAGS="" BUILD_TYPE="RelWithAssert"
os: osx
before_script:
# print out some information
- df -h
# gcov coverage
- if [ -n "$BUILD_COVERAGE" -a -n "$COVERALLS_REPO_TOKEN" ]; then
pip install --user cpp-coveralls;
CMAKE_ARGS="$CMAKE_ARGS -DFOXXLL_USE_GCOV=ON";
fi
# configure
- mkdir build; cd build
- cmake
-DCMAKE_BUILD_TYPE="$BUILD_TYPE"
-DCMAKE_C_COMPILER="$CMAKE_CC" -DCMAKE_CXX_COMPILER="$CMAKE_CXX"
-DCMAKE_C_FLAGS="$COMPILER_FLAGS" -DCMAKE_CXX_FLAGS="$COMPILER_FLAGS"
-DFOXXLL_BUILD_TESTS=ON
-DFOXXLL_TRY_COMPILE_HEADERS=ON
$CMAKE_ARGS ..
after_success:
- cd $TRAVIS_BUILD_DIR
- if [ -n "$BUILD_COVERAGE" -a -n "$COVERALLS_REPO_TOKEN" ]; then
coveralls --exclude tests --exclude extlib --gcov-options '\-lp';
fi
script:
- make -j4
- ../misc/travis-run.sh