-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
60 lines (52 loc) · 1.56 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
language: cpp
dist: trusty
sudo: required
matrix:
include:
- os: linux
compiler: clang
env: DISTRO=ubuntu DISTRO_VERSION=16.04
- os: linux
compiler: clang
env: CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=Debug" \
DISTRO=ubuntu DISTRO_VERSION=17.10 \
- os: linux
compiler: clang
env: CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=Debug" \
DISTRO=fedora DISTRO_VERSION=27
- os: linux
compiler: clang
env: DISTRO=fedora DISTRO_VERSION=27
- os: linux
compiler: gcc
env: CMAKE_FLAGS="-DCOVERAGE=ON -DCMAKE_BUILD_TYPE=Debug" \
BUILD_EXTRA=COVERAGE DISTRO=ubuntu DISTRO_VERSION=16.04
- os: linux
compiler: gcc
env: DISTRO=ubuntu DISTRO_VERSION=17.10
- os: linux
compiler: gcc
env: DISTRO=fedora DISTRO_VERSION=27
script:
- ci/build-linux.sh
after_success:
- ci/upload-coverage.sh
# Cache the (saved) docker images.
# With recent version of docker one can reuse a prior image as a
# source cache, that can speed up the builds, as the dependencies and
# images can be reused ...
# TODO() - we need to add a cron job to rebuild without a cache every
# so often, the dependencies do change and we want to validate that
# the examples build with the newer versions. That is easy to do with
# a cron-based build in Travis that cleans up the cache every X days.
cache:
directories:
- docker-images/ubuntu/16.04
- docker-images/ubuntu/17.10
- docker-images/fedora/27
install:
- ci/install-linux.sh
before_cache:
- ci/cache-linux.sh
notifications:
email: false