forked from GPSBabel/gpsbabel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (47 loc) · 1.63 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
language: cpp
matrix:
include:
- os: linux
dist: trusty
sudo: required
services: docker
compiler: gcc
- os: linux
dist: trusty
sudo: required
services: docker
compiler: clang
- os: osx
compiler: clang
cache:
directories:
- $HOME/Qt
- os: linux
dist: trusty
sudo: required
compiler: gcc
env:
- GEN_COVERAGE="true"
addons:
apt:
packages:
- libusb-dev
- gcovr
cache:
directories:
- $HOME/Qt
install:
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then source ./tools/travis_install_osx; fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ] && [ "${GEN_COVERAGE}" = "true" ]; then ./tools/travis_install_linux_coverage; fi
script:
- if [ "${TRAVIS_OS_NAME}" = "linux" ] && [ "${GEN_COVERAGE}" != "true" ]; then ./tools/travis_script_linux_docker; fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ] && [ "${GEN_COVERAGE}" = "true" ]; then ./tools/travis_script_linux_coverage; 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" ] && [ "$TRAVIS_BRANCH" = "master" ]; then bash ./tools/uploadtool/upload.sh gui/objects/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