-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
56 lines (48 loc) · 1.37 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
# autho: Herbert Koelman
# created on: 1/6/2019
os: linux
# use Ubuntu Xenial (version 16)
# This comes with cmake 3.11 which is required to build GoogleTest
dist: xenial
language: cpp
compiler: gcc
env:
CODECOV_TOKEN="73b7985a-7b2d-40fa-a025-65906959f9c2"
# Run travis on these branches only...
branches:
only:
- master
- develop
addons:
sonarcloud:
organization: "herbertkoelman-github"
apt:
packages:
- doxygen
- graphviz
# matrix:
# include:
# - name: coverage jobs
# env:
# BUILD_DIRECTORY=cmake-gcov-build
# CMAKE_COMMAND_LINE_ARGS="-DGCOV=yes"
# MAKE_TARGETS="all test"
# - name: sonar code quality checks
# env:
# BUILD_DIRECTORY=cmake-sonar-build
# CMAKE_COMMAND_LINE_ARGS="-DSONAR=yes -DGCOV=yes"
# MAKE_TARGETS="code-quality"
# - name: default
# env:
# BUILD_DIRECTORY=cmake-default-build
# CMAKE_COMMAND_LINE_ARGS=""
# MAKE_TARGETS="all doxygen package"
script:
# Set the variable CMAKE_BUILD_TYPE in your project's settings
#- mkdir $BUILD_DIRECTORY && cd $BUILD_DIRECTORY && cmake $CMAKE_BUILD_TYPE $CMAKE_COMMAND_LINE_ARGS .. && make $MAKE_TARGETS
- ./BUILD -S
after_success:
# create gcov files
- find ./CMakeFiles/ -type f -name "*.gcno" -exec gcov {} -m \;
# upload data to codecov
- bash <(curl -s https://codecov.io/bash)