-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
49 lines (49 loc) · 966 Bytes
/
.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
language: c
# Ubuntu 14.04 Trusty support
sudo: required
dist: trusty
# build matrix with both OSes and Compilers
os:
- linux
- osx
compiler:
- clang
- gcc
# different C Standard versions - test on C99 and C11
env:
matrix:
- LIBSXBP_C_STANDARD=99
- LIBSXBP_C_STANDARD=11
matrix:
# exclude gcc on osx as this always points to clang
exclude:
- os: osx
compiler: gcc
cache:
- ccache
addons:
apt:
sources:
- george-edison55-precise-backports # cmake 3.2.3 / doxygen 1.8.3
# add PPAs with more up-to-date toolchains
- ubuntu-toolchain-r-test
packages:
- cmake
- cmake-data
# want gcc 5.x as 4.x gives incorrect warnings
- gcc-5
# branches safelist
branches:
only:
- master
- develop
- /^test\/.*$/
- /^feature\/.*$/
install:
# override $CC to use gcc-5
- if [ "$CC" = "gcc" ]; then export CC="gcc-5"; fi
before_script:
- cmake .
script:
- make -j -k
- ctest -V