forked from openastro/sml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
62 lines (53 loc) · 2.01 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
# Copyright (c) 2014-2015 Kartik Kumar ([email protected])
# Distributed under the MIT License.
# See accompanying file LICENSE.md or copy at http://opensource.org/licenses/MIT
language: cpp
compiler:
- gcc
- clang
env:
global:
- secure: "Vv3X7OaYzNe+GaxAwsUoEf44W8bC52fszgNPl725HHgFCWlpalqrFRufly8ol/q7uZ2lMnGeiCeKFFfTjfMBY9P0SDFltQD5/ATuquRVKEXjKNqPQGTXHqlfaA9tg2aztjwYHvJmetRRWYir86I15hmAdh320Mj8Ul0iK44b6Bw="
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:
coverity_scan:
project:
name: "kartikkumar/sml"
notification_email: [email protected]
build_command_prepend: "mkdir build; cd build; cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_TESTS=on -DBUILD_TESTS_WITH_EIGEN=on .."
build_command: "make"
branch_pattern: coverity_scan
before_install:
- sudo chmod ugo+x scripts/update_doxygen.sh
- sudo chmod ugo+x scripts/check_doxygen.sh
# Fetch a newer CMake.
# https://github.com/bjz/glfw-rs/commit/e9353a14afa5c647497837e16fd44d0e1d6eb326
- yes | sudo add-apt-repository ppa:kalakris/cmake
install:
- sudo apt-get install cmake
- sudo apt-get autoremove
- sudo ./scripts/update_doxygen.sh
- if [ "$COVERITY_SCAN_BRANCH_PATTERN" != "coverity_scan" ] && [ "$CXX" == "g++" ] && [ "$BUILD_TYPE" == "Debug" ]; then
sudo pip install cpp-coveralls;
fi
script:
- if [ "$COVERITY_SCAN_BRANCH_PATTERN" != "coverity_scan" ]; then
mkdir build;
cd build;
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_TESTS=on -DBUILD_TESTS_WITH_EIGEN=on -DBUILD_DOXYGEN_DOCS=on ..;
make;
../scripts/check_doxygen.sh;
ctest -V;
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.*";
fi