forked from kartikkumar/d2d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (56 loc) · 1.96 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
# Copyright (c) 2014-2016 Kartik Kumar, Dinamica Srl (me@kartikkumar.com)
# Distributed under the MIT License.
# See accompanying file LICENSE.md or copy at http://opensource.org/licenses/MIT
language: cpp
sudo: false
compiler:
- gcc
- clang
env:
global:
- secure: "mJTBENZpb9xJpZMYC642bFb3kdsxdsjwqKjLgdGea+PVOjOYhWKP7BxNKjYk6FulQQ/Iqh8O+j8fve220oJaptyfy30ez6OyCZXkOEorEfesRMVGek1H6dPxMZK3FYHRnO8KXYPZMR76HrYBwG01RnxrNhr2aJZc79tKnrdbaik="
matrix:
- BUILD_TYPE=Debug
- BUILD_TYPE=Release
matrix:
exclude:
- compiler: clang
env: COVERITY_SCAN_BRANCH_PATTERN=coverity_scan
- compiler: gcc
env: COVERITY_SCAN_BRANCH_PATTERN=coverity_scan BUILD_TYPE=Release
addons:
apt:
packages:
- texlive
- libboost-all-dev
- libgsl0-dev
coverity_scan:
project:
name: "kartikkumar/d2d"
notification_email: me@kartikkumar.com
build_command_prepend: "mkdir build; cd build; cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_TESTS=on .."
build_command: "make"
branch_pattern: coverity_scan
before_install:
- bash scripts/install_cmake.sh
- bash scripts/install_doxygen.sh
- chmod ugo+x scripts/check_doxygen.sh
- if [ "$COVERITY_SCAN_BRANCH_PATTERN" != "coverity_scan" ] && [ "$CXX" == "g++" ] && [ "$BUILD_TYPE" == "Debug" ]; then
pip install --user cpp-coveralls;
fi
before_script::
- ls -R $HOME/cmake
- ls -R $HOME/doxygen
script:
- if [ "$COVERITY_SCAN_BRANCH_PATTERN" != "coverity_scan" ]; then
mkdir build;
cd build;
$HOME/cmake/bin/cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_TESTS=on -DDOXYGEN_EXECUTABLE=$HOME/doxygen/bin/doxygen -DBUILD_DOXYGEN_DOCS=on ..;
make;
ctest -V;
../scripts/check_doxygen.sh;
fi
after_success:
- if [ "$COVERITY_SCAN_BRANCH_PATTERN" != "coverity_scan" ] && [ "$CXX" == "g++" ] && [ "$BUILD_TYPE" == "Debug" ]; then
coveralls --root .. -E ".*external.*" -E ".*CMakeFiles.*" -E ".*test/.*.cpp.*" -E ".*src/main.cpp.*";
fi