-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
61 lines (51 loc) · 1.94 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
# Copyright (c) 2016 Kartik Kumar, Dinamica Srl ([email protected])
# 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: "ttqyPdFYLhW4HBjKZi9qSNlYp4cCerztorW4n86+BPTXWCNGtJBpes/AWJP0Q4xD3HhGssw2TVeV2LmUcxJCGSEKSPVZn4cElgPwbCBuyC5LBBySykN8Gn8qzaSkMN3KPO9nsUsXKHwpqYb+B5QtKusnrgM1p99gbku3xocc2FE="
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/cpp-project"
notification_email: [email protected]
build_command_prepend: "mkdir build; cd build; cmake -DPROJECT_NAME=cpp_project -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 -DPROJECT_NAME=cpp_project -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