-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
65 lines (57 loc) · 1.39 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
dist: focal
language: cpp
compiler: gcc
cache:
directories:
- '$HOME/.sonar/cache'
addons:
sonarcloud:
organization: "ilyajob05"
token: "2f8f2781646a1193aee16d9237757956c46bb0f7"
apt:
# sources:
# - ubuntu-toolchain-r-test
packages:
- cmake
- valgrind
- gcovr
- python3-pip
env:
- SONAR=true
before_install:
# Combine global build options with OS/compiler-dependent options
install:
- echo ${PATH}
- echo ${CXX}
- ${CXX} --version
- ${CXX} -v
- pip3 install --user gcovr
- sudo apt-get install libgtest-dev
- sudo apt-get install libopencv-dev
- cmake -DCMAKE_BUILD_TYPE=Release /usr/src/gtest
- cmake --build .
- sudo mv lib/lib*.a /usr/lib
- rm CMakeCache.txt cmake_install.cmake Makefile
- rm -rf CMakeFiles
- echo ${PATH}
- echo ${CXX}
- ${CXX} --version
- ${CXX} -v
- cmake --version
# before_script:
script:
- cmake --version
- mkdir build
- cd build
- cmake -DBUILD_TESTS=ON -DCMAKE_BUILD_TYPE=DEBUG ..
- cd ..
- build-wrapper-linux-x86-64 --out-dir bw-output cmake --build build/ --clean-first --target all
- cd build
- ctest -C Debug
- cd ..
- pwd
- gcovr --sonarqube coverage.xml
- cat coverage.xml
- sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output
#after_success:
- bash <(curl -s https://codecov.io/bash)