-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
65 lines (61 loc) · 1.46 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
language: cpp
matrix:
include:
- name: "Linux/GCC"
os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- lcov
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
script:
- cmake -DCoverage=ON .. $GENERATOR
- cmake --build .
- lcov -q -c -i -d ./gsap -o coverage_base.info
- pushd bin
- ./tests
- popd
after_success:
# Create lcov report
- lcov -q -c -d ./gsap -o coverage_test.info
- lcov -q -a coverage_base.info -a coverage_test.info -o coverage.info
- lcov -q -r coverage.info '/usr/*' --o coverage.info # filter system-files
# Upload to CodeCov
- bash <(curl -s https://codecov.io/bash) -f coverage.info
- name: "Linux/Clang"
os: linux
compiler: clang
addons:
apt:
sources:
- llvm-toolchain-trusty-5.0
packages:
- clang-5.0
env:
- MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
- name: "macOS/Clang"
os: osx
compiler: clang
env:
- MATRIX_EVAL=""
- name: "macOS/Xcode"
os: osx
env:
- MATRIX_EVAL="GENERATOR='-G Xcode'"
before_install:
- eval "${MATRIX_EVAL}"
before_script:
- pushd tests
- mkdir build
- pushd build
script:
- cmake .. $GENERATOR
- cmake --build .
- pushd bin
- ./tests
- popd