forked from GPSBabel/gpsbabel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
103 lines (97 loc) · 3.16 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
language: cpp
matrix:
include:
- os: linux
dist: xenial
sudo: required
services: docker
compiler: gcc
env:
- BUILD_TYPE="docker"
- DOCKER_IMG="qtio"
- os: linux
dist: xenial
sudo: required
services: docker
compiler: clang
env:
- BUILD_TYPE="docker"
- DOCKER_IMG="qtio"
- os: linux
dist: xenial
sudo: required
services: docker
compiler: gcc
env:
- BUILD_TYPE="docker"
- DOCKER_IMG=""
- os: linux
dist: xenial
sudo: required
compiler: gcc
env:
- BUILD_TYPE="local"
- QT_VERSION="5.9.8" # 5.12.1 vtesto stmsdf fails with valgrind 3.11.0 which is on xenial
addons:
apt:
packages:
- expat
- fop
- valgrind
- xsltproc
- libxml2-utils
- libusb-1.0-0-dev
- docbook-xml
- docbook-xsl
- libgl1-mesa-dev
cache:
directories:
- $HOME/Cache
timeout: 600
- os: osx
compiler: clang
env: QT_VERSION="5.9.8"
cache:
directories:
- $HOME/Cache
timeout: 600
- os: osx
compiler: clang
env: QT_VERSION="5.12.6"
cache:
directories:
- $HOME/Cache
timeout: 600
- os: linux
dist: xenial
sudo: required
compiler: gcc
env:
- BUILD_TYPE="coverage"
- QT_VERSION="5.9.8"
addons:
apt:
packages:
- libusb-1.0-0-dev
- gcovr
- lcov
cache:
directories:
- $HOME/Cache
install:
- if [ "${TRAVIS_OS_NAME}" = "linux" ] && [ "${BUILD_TYPE}" = "coverage" ]; then ./tools/travis_install_linux_coverage ${QT_VERSION} && source ${HOME}/Cache/qt-${QT_VERSION}.env; fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ] && [ "${BUILD_TYPE}" = "local" ]; then ./tools/travis_install_linux_local ${QT_VERSION} && source ${HOME}/Cache/qt-${QT_VERSION}.env; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ./tools/travis_install_osx ${QT_VERSION} && source ${HOME}/Cache/qt-${QT_VERSION}.env; fi
script:
- if [ "${TRAVIS_OS_NAME}" = "linux" ] && [ "${BUILD_TYPE}" = "coverage" ]; then ./tools/travis_script_linux_coverage; fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ] && [ "${BUILD_TYPE}" = "docker" ]; then ./tools/travis_script_linux_docker ${DOCKER_IMG}; fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ] && [ "${BUILD_TYPE}" = "local" ]; then echo $PATH; ./build_and_test; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ./tools/travis_script_osx; fi
after_success:
- cd ${TRAVIS_BUILD_DIR}
# only deploy pushes to master or prs that target master. the prs will go to transfr.sh, the pushes go to github.
- if [ "${TRAVIS_OS_NAME}" = "osx" ] && [ "${QT_VERSION}" = "5.12.6" ] && [ "$TRAVIS_BRANCH" = "master" ]; then bash ./tools/uploadtool/upload.sh gui/GPSBabel-*.dmg; fi
branches:
except:
- /^(?i:continuous)$/ # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous.*windows)$/ # Do not build tags that we create when we upload to GitHub Releases