-
Notifications
You must be signed in to change notification settings - Fork 85
/
.travis.yml
57 lines (56 loc) · 1.62 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
---
dist: xenial
language: cpp
sudo: required
matrix:
include:
-
compiler: clang
env: COMPILER='clang++'
os: osx
osx_image: xcode9
-
compiler: clang
env: COMPILER='clang++'
os: osx
osx_image: xcode10
-
compiler: clang
env: COMPILER='clang++'
os: osx
osx_image: xcode11
-
addons:
apt:
packages:
- cmake
- g++-6
- lcov
sources:
- ubuntu-toolchain-r-test
compiler: gcc
env: "COMPILER=g++-6 COLLECT_COVERAGE=1"
os: linux
-
addons:
apt:
packages:
- cmake
- clang-8
- g++-8
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-xenial-8
compiler: clang
env: "COMPILER=clang++-8 EXTRA_FLAGS=-DJINJA2CPP_CXX_STANDARD=17 SANITIZE_BUILD=address+undefined"
os: linux
before_install:
- "date -u"
- "uname -a"
script: ./scripts/build.sh
after_success:
- "if [[ \"${COLLECT_COVERAGE}\" != \"\" ]]; then echo \"Uploading code coverate report\" ; fi"
- "if [[ \"${COLLECT_COVERAGE}\" != \"\" ]]; then lcov --directory . --capture --output-file coverage.info ; fi"
- "if [[ \"${COLLECT_COVERAGE}\" != \"\" ]]; then lcov --remove coverage.info '/usr/*' --output-file coverage.info ; fi"
- "if [[ \"${COLLECT_COVERAGE}\" != \"\" ]]; then lcov --list coverage.info ; fi"
- "if [[ \"${COLLECT_COVERAGE}\" != \"\" ]]; then bash <(curl -s https://codecov.io/bash) -t \"225d6d7a-2b71-4dbe-bf87-fbf75eb7c119\" || echo \"Codecov did not collect coverage reports\"; fi"