-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
64 lines (58 loc) · 1.23 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
sudo: false
language: cpp
matrix:
include:
- os: linux
compiler: gcc
- os: linux
compiler: clang
- os: linux
compiler: gcc
env: COVERALLS=true
- os: linux
dist: trusty
compiler: gcc
- os: linux
dist: trusty
compiler: clang
- os: osx
osx_image: xcode8
compiler: clang
before_script:
#ALWAYS analyze a project in its "debug" configuration
- if [ "$TRAVIS_OS_NAME" == "osx" ];
then
cmake -DCMAKE_BUILD_TYPE=Debug .;
elif [ "$CXX" == "clang++" ];
then
cmake -DCMAKE_BUILD_TYPE=Debug .;
elif [ "$COVERALLS" == "true" ];
then
echo "CHECKING CODE COVERAGE, $COVERALLS";
cmake -Ccoveralls.cmake .;
else
cmake .;
fi
script:
#Run the clang static analyzer.
- cmake --build . -- -j 2;
- if [ "$COVERALLS" == "true" ];
then
make coveralls -j 2;
else
ctest --output-on-failure;
fi
# - make package # doesn't work on ubuntu
notifications:
email:
on_success: change
on_failure: always
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.6
packages:
- clang-3.6
- libboost-program-options-dev
- libboost-date-time-dev