-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
112 lines (97 loc) · 3.19 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
language: cpp
#Which branches to build. Currently set for master and any tag
branches:
except:
- gh-pages
# only:
# - master
# - /v[0-9].*$/
# Notification settings
notifications:
email: false
# Default recipients are those with push or admin permissions of the repo
#recipients:
#on_success: never # default: change
#on_failure: always # default: always
# Get the repository
git:
# Depth of commits to grab. Less is faster
depth: 1
# Init submodules
#submodules: false
# Matrix of operating systems and dependencies
matrix:
include:
- os: linux
sudo: required
# Start xvfb to get be able to run GUI tests
services: xvfb
dist: xenial
addons:
apt:
update: true
sources:
- sourceline: ppa:beineri/opt-qt-5.11.1-xenial
packages:
- libgl1-mesa-dev
- qt511base
- os: osx
addons:
brew:
update: true
packages:
- qt5
# Brew doesn't automatically set qt5 bins to PATH anymore
env: PATH="${PATH}:/usr/local/opt/qt/bin"
- os: osx
osx_image: xcode10
addons:
brew:
update: true
packages:
- qt5
# Brew doesn't automatically set qt5 bins to PATH anymore
env:
- PATH="${PATH}:/usr/local/opt/qt/bin"
- osx_image="xcode10"
- os: windows
# Start xvfb to get be able to run GUI tests
services: xvfb
# OPTIONAL - which components to cache
#cache components:
# Stuff to do before installing the dependencies
# non-zero exit status: build status returns failed and exits immediately
before_install:
- . $TRAVIS_BUILD_DIR/travis/travis_before_install.sh
# Install dependencies here
# non-zero exit status: build status returns failed and exits immediately
install:
- . $TRAVIS_BUILD_DIR/travis/travis_install.sh
# OPTIONAL - After dependencies but before the build step
# non-zero exit status: build status returns failed and exits immediately
#before_script:
# The build step
# non-zero exit status: build status returns failed, but continues to run. Intended for the after_failure step
script:
- . $TRAVIS_BUILD_DIR/travis/travis_script.sh
- bash $TRAVIS_BUILD_DIR/travis/travis_test.sh
# OPTIONAL - Cleaning up the cache
#before_cache:
# What to do if success or failure
# non-zero exit status: build status returns failed but continues running
after_success:
- test $TRAVIS_BRANCH = "master" && bash $TRAVIS_BUILD_DIR/travis/travis_deploy.sh
#after_failure:
# OPTIONAL - Steps before deployement. Runs for each deployement if there are multiple deployements
# non-zero exit status: build status returns failed but continues running
#before_deploy:
# OPTIONAL - Deployment
# non-zero exit status: build status returns failed but continues running
# This deploys a zip and a tarball to Github Releases if it is a tagged push request
#deploy:
# OPTIONAL - Steps after deployement. Runs for each deployement if there are multiple deployements
# non-zero exit status: build status returns failed but continues running
#after_deploy:
# Steps after script
# non-zero exit status: build status returns failed but continues running
#after_script: