-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
59 lines (53 loc) · 1.82 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
#########################
# Project configuration #
#########################
language: cpp
dist: xenial
sudo: required
################
# Build matrix #
################
matrix:
include:
- os: linux
compiler: gcc
before_script:
# install latest LCOV (1.9 was failing for me) [1]
- wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz
- tar xf lcov_1.11.orig.tar.gz
- sudo make -C lcov-1.11/ install
# install lcov to coverage conversion + upload tool
- cd ${TRAVIS_BUILD_DIR}
# init coverage to 0 (optional)
- lcov --directory . --zerocounters
after_success:
- cd ${TRAVIS_BUILD_DIR}
- lcov --directory . --capture --output-file coverage.info # capture coverage info
- lcov --remove coverage.info 'test/*' '/usr/*' 'third_parties/*' --output-file coverage.info # filter out system and test code
- lcov --list coverage.info # debug before upload
- bash <(curl -s https://codecov.io/bash) -f coverage.info || echo "Codecov did not collect coverage reports"
env:
- CMAKE_OPTIONS="-DDEBUG=ON -DBITS=64 -DCOVERAGE=ON"
install:
- cd ${TRAVIS_BUILD_DIR}
- sudo add-apt-repository --yes ppa:jonathonf/gcc-7.2
- sudo apt-get update
- scripts/install.sh tools
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-7
- scripts/install.sh wii
- scripts/install.sh raspi
script:
# Show OS/compiler version
- uname -a
- lsb_release -a
- cmake --version
- $CXX --version
- cd ${TRAVIS_BUILD_DIR}
- echo -e "\033[0;43mCompiling for the x86 architecture\033[0;0m"
- rm -rf build
- cmake -H. -Bbuild ${CMAKE_OPTIONS}
- cd build
- make all -j $(nproc)
- ./unit_testing_all '[integration]'
notifications:
email: false