forked from dannyedel/dspdfviewer
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
79 lines (79 loc) · 1.84 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
language: cpp
compiler: gcc
sudo: false
cache: ccache
# define dependencies as q4dep and q5dep
qt4_deps: &q4dep
- libboost-program-options-dev
- libboost-test-dev
- pkg-config
- xvfb
- xauth
- libpoppler-qt4-dev
qt5_deps: &q5dep
- libboost-program-options-dev
- libboost-test-dev
- pkg-config
- xvfb
- xauth
- libpoppler-qt5-dev
- qtbase5-dev
- qttools5-dev
- qttools5-dev-tools
addons:
apt:
packages: *q4dep
env: QT_VERSION=4
# Only build master branch on push, other branches will get built when
# they are turned into pull-requests
branches:
only:
- master
- /^test-.*$/
# Build matrix.
#
# The first (implicit) build will be
# qt4/gcc/container-based (precise)
#
# additional builds specified are
# 2. qt4/clang/container (precise)
# 3. qt5/gcc/gce (sudo/trusty)
# 4. qt5/clang/gce (sudo/trusty)
# 5. osx/clang
matrix:
include:
- compiler: clang
- dist: trusty
sudo: required
env: QT_VERSION=5
compiler: gcc
addons:
apt:
packages: *q5dep
- dist: trusty
sudo: required
env: QT_VERSION=5
compiler: clang
addons:
apt:
packages: *q5dep
- os: osx
compiler: clang
before_install: _travis/osx-install-dependencies
- os: osx
osx_image: xcode7.3
compiler: clang
env: QT_VERSION=5
before_install: _travis/osx-install-dependencies
install:
- _travis/configure
- make -C build
script: _travis/test
after_success:
- ccache -s
- >
if [[ "$CXX" == "clang++" && "$TRAVIS_OS_NAME" != "osx" ]] ; then
bash <(curl -s https://codecov.io/bash) -x llvm-cov
else
bash <(curl -s https://codecov.io/bash)
fi