-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
58 lines (45 loc) · 1.13 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
# Enable C++ support
language: cpp
git:
depth: false
addons:
sonarcloud:
organization: "jvinniec-github"
token: ${SONAR_TOKEN}
# block the following branches from triggering builds
branches:
except:
- gh-pages
# Establish which builds we wish to test
matrix:
include:
# Test Linux with GCC
- os: linux
compiler: gcc
# Test Linux with Clang
- os: linux
compiler: clang
# Test OSX with GCC
- os: osx
compiler: gcc
# Test OSX with previous Clang
- os: osx
compiler: clang
osx_image: xcode9.4
# Test OSX with Clang (latest version)
- os: osx
compiler: clang
osx_image: xcode10.2
# Allow compiling with c++11
dist: xenial
# Build steps
script:
- cmake -Dcoverage=1 ./
- cmake --build .
- cmake --build . --target test
after_success:
# Only run sonar-scanner if we're using a linux machine with clang
# This prevents generating a code coverage/status reports for each
# build configuration
- bash gen_coverage.sh
# TODO: also need to test pure autotools build