-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.travis.yml
More file actions
34 lines (30 loc) · 828 Bytes
/
.travis.yml
File metadata and controls
34 lines (30 loc) · 828 Bytes
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
language: cpp
compiler:
- gcc
# - clang
sudo: required
dist: trusty
install:
# CppCheck
- sudo apt-get install -qq cppcheck
# Gcovr
- sudo apt-get install gcovr
# Pybind11
- sudo apt-get install python3-pip
- sudo python3 -m pip install pybind11
script:
# Runs compilation, cppcheck, tests and coverage collection
- mkdir build
- cd build
- cmake ../ -DENABLE_CODECOV=ON -DENABLE_TESTS=ON -DENABLE_CPPCHECK=ON
- make && make "TEST_FLAGS=-D__linux__" cppcheck && (make coverage || (cat ./Testing/Temporary/LastTest.log && exit 1))
- cd ..
after_success:
# codecov.io
- bash <(curl -s https://codecov.io/bash) -f build/coverage.xml
notifications:
email:
recipients:
- d.desensi.software@gmail.com
on_success: never # default: change
on_failure: always # default: always