forked from therecipe/qt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (36 loc) · 1.44 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
language: go
dist: trusty
sudo: required
go: 1.8.x
env: DESKTOP=true ANDROID=false
matrix:
include:
- os: linux
env: DESKTOP=true ANDROID=false QT_PKG_CONFIG=true PKG_CONFIG_PATH=/opt/qt58/lib/pkgconfig QT_DOC_DIR=/opt/qt58/doc QT_MISC_DIR=/opt/qt58
- os: linux
env: DESKTOP=false ANDROID=true
- os: osx
osx_image: xcode8.2
env: DESKTOP=true ANDROID=false
- os: osx
osx_image: xcode8.2
env: DESKTOP=true ANDROID=false QT_HOMEBREW=true
- os: osx
osx_image: xcode8.2
env: DESKTOP=false ANDROID=true
- os: osx
osx_image: xcode8.2
env: DESKTOP=false ANDROID=false IOS=true
- os: osx
osx_image: xcode8.2
env: DESKTOP=false ANDROID=false IOS_SIMULATOR=true
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then travis_wait 30 $GOPATH/src/github.com/therecipe/qt/internal/ci/linux.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then travis_wait 45 $GOPATH/src/github.com/therecipe/qt/internal/ci/darwin.sh; fi
script:
- go get -v github.com/therecipe/qt/cmd/...
- if [[ "$DESKTOP" == "true" ]]; then $GOPATH/bin/qtsetup full desktop; fi
- if [[ "$ANDROID" == "true" ]]; then $GOPATH/bin/qtsetup full android; fi
- if [[ "$IOS" == "true" ]]; then $GOPATH/bin/qtsetup full ios; fi
- if [[ "$IOS_SIMULATOR" == "true" ]]; then $GOPATH/bin/qtsetup full ios-simulator; fi
- if [[ "$QT_WINDOWS_CC" == "true" ]]; then $GOPATH/bin/qtsetup full windows; fi