-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
138 lines (131 loc) · 3.27 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
language: go
go:
- 1.13
services:
- docker
dist: xenial
os: linux
addons:
apt: ##Thoose packages comes from xenial repos
packages:
- dos2unix
- nsis
- librasqal3
- librasqal3-dev
- libgtk-3-dev
- libwebkit2gtk-4.0-dev
- build-essential # probably useless
dist: xenial
stages:
- compile
jobs:
include:
## Unix jobs
- stage: compile
name: "Linux Static"
env:
- MAKE_COMMAND="build"
- name: "Linux Shared"
env:
- MAKE_COMMAND="nostatic"
- name: "OSX"
env:
- MAKE_COMMAND="osx"
## Windows Jobs
- name: "Docker Server"
env:
- MAKE_COMMAND=docker-server
- name: "Windows"
env:
- MAKE_COMMAND=windows
before_script:
- go get -u github.com/hallazzang/syso/...
- name: "Windows 32"
env:
- MAKE_COMMAND=windows32
before_script:
- go get -u github.com/hallazzang/syso/...
## Android Jobs
# Currently travis for building android uses trusty distro and apt packages don't seem to be available
# FIXME fetch dependencies via curl rather than apt for trusty distro or wait for travis to enable android builds on xenial.
# - name: "Android 4.x"
# language: android
# env:
# - ARCH=android MIN_NAL=14 MAX_NAL=20
# - MAKE_COMMAND=android
# before_script:
# - go get golang.org/x/mobile/cmd/gomobile
# - gomobile init
# android:
# components:
# - tools
# - platform-tools
# - build-tools-27.0.3
# - android-27
# - name: "Android 5.x"
# language: android
# dist: trusty
# env:
# - ARCH=android MIN_NAL=21 MAX_NAL=22
# - MAKE_COMMAND=android
# before_script:
# - go get golang.org/x/mobile/cmd/gomobile
# - gomobile init
# android:
# components:
# - tools
# - platform-tools
# - build-tools-27.0.3
# - android-27
# - name: "Android 6.x 7.x"
# language: android
# dist: trusty
# env:
# - ARCH=android MIN_NAL=23 MAX_NAL=25
# - MAKE_COMMAND=android
# before_script:
# - go get golang.org/x/mobile/cmd/gomobile
# - gomobile init
# android:
# components:
# - tools
# - platform-tools
# - build-tools-27.0.3
# - android-27
# - name: "Android 8.x"
# language: android
# dist: trusty
# env:
# - ARCH=android MIN_NAL=26 MAX_NAL=27
# - MAKE_COMMAND=android
# before_script:
# - go get golang.org/x/mobile/cmd/gomobile
# - gomobile init
# android:
# components:
# - tools
# - platform-tools
# - build-tools-27.0.3
# - android-27
# - name: "Android 9.x"
# language: android
# dist: trusty
# env:
# - ARCH=android MIN_NAL=28 MAX_NAL=28
# - MAKE_COMMAND=android
# before_script:
# - go get golang.org/x/mobile/cmd/gomobile
# - gomobile init
# android:
# components:
# - tools
# - platform-tools
# - build-tools-27.0.3
# - android-27
branches:
only:
- master
except:
- develop
script:
- make $MAKE_COMMAND