This repository was archived by the owner on Dec 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
75 lines (73 loc) · 1.95 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
66
67
68
69
70
71
72
73
74
75
language: cpp
dist: trusty
sudo: false
matrix:
include:
# Build Job
- name: Tests (Stable Ubuntu gcc)
os: linux
env:
- MATRIX_EVAL="CC=gcc && CXX=g++"
- CXXFLAGS="" # -Werror=strict-aliasing and other GCC bugs
# Build Job
- name: Tests Forcing C++0x (Stable Ubuntu gcc)
os: linux
env:
- MATRIX_EVAL="CC=gcc && CXX=g++"
- CXXFLAGS="" # -Werror=strict-aliasing and other GCC bugs
- CPPSTD="-std=c++0x" # Force C++0x
# Build Job
- name: Tests (Latest clang5)
os: linux
addons:
apt:
sources:
- llvm-toolchain-trusty-5.0
packages:
- clang-5.0
env:
- MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
# Build Job
- name: Tests, Examples & Docs (Latest gcc7)
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- libeigen3-dev # used by examples/robotlocalization
- graphviz # used by docs
- doxygen # used by docs
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
script:
- make unit-test/test_all
# eigen3 throws warnings.
- CXXFLAGS="" CONFIG="-I/usr/include/eigen3" make examples/all
- make docs
# Build Job
- name: Tests Coverage (Latest gcc7)
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- lcov
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
script:
- make unit-test/test_coverage
after_success:
- bash .travis_coverage_poster.sh
before_install:
- eval "${MATRIX_EVAL}"
- $CXX --version
# Used on all jobs that don't specify a script
script:
- make unit-test/test_all
# Min set of examples that are considered tests pretty much
- make examples/helloworld
- make examples/counterwithreset