forked from lgblgblgb/xemu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
219 lines (217 loc) · 7.73 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
dist: focal
sudo: required
language: c
matrix:
include:
- name: Linux native compilation
os: linux
addons:
hostname: lgb
apt:
packages:
- alien
- build-essential
- bzip2
- coreutils
- curl
- dpkg
- fakeroot
- gawk
- gcc
- file
- libc-bin
- libc6-dev
- libcurl4-openssl-dev
- libgtk-3-dev
- libreadline-dev
- libsdl2-dev
- make
- rpm
- sed
- tar
- vim-common
- wget
- zip
compiler: gcc
before_script:
- echo "127.126.125.124 lgb" | sudo tee -a /etc/hosts 2>/dev/null || true
- cat /etc/hosts || true
- hostname
- set +e
- uname -a ; lsb_release -a || true ; hostname ; pwd ; df -h ; id -a
- set -e
- sdl2-config --version --prefix --cflags --libs --static-libs
- pkg-config --cflags-only-I --libs gtk+-3.0
- set +e
- ps auxwwww || true
- uptime
- build/show-git-info
script:
- set -e
- make -j 2 RELEASE=yes OFFICIALBUILD=yes
- set +e
- for a in build/bin/*.native ; do strip $a ; ls -l $a ; done
- set -e
- make RELEASE=yes OFFICIALBUILD=yes deb
- set +e
- cp build/bin/*.deb build/bin/*.rpm . || true
- build/bin/xmega65.native --help || true
- ldd build/bin/xmega65.native
- uptime ; pwd ; ls -l
before_deploy:
- build/deploy/before-deploy.sh xemu-deploy Linux
deploy:
provider: pages
local_dir: xemu-deploy
skip_cleanup: true
github_token: $GHDEPLOYKEY2
keep_history: false
repo: lgblgblgb/xemu-binaries
target_branch: binary-linux-$TRAVIS_BRANCH
email: lgblgblgb@gmail.com
name: Gábor Lénárt aka. LGB
verbose: false
on:
branch:
- master
- next
- dev
- vic
- hmw
- merger
after_deploy:
- build/deploy/discord-webhook.sh success "Ubuntu Linux DEB" ANY:DISCORD_XEMU_SERVER_TEST_CHANNEL_WEBHOOK master,hmw,next:DISCORD_MEGA65_SERVER_XEMU_CHANNEL_WEBHOOK || true
- name: Windows cross-compilation on Linux
os: linux
addons:
hostname: lgb
apt:
packages:
- binutils-mingw-w64-i686
- binutils-mingw-w64-x86-64
- bzip2
- coreutils
- curl
- file
- gawk
- gcc-mingw-w64-i686
- gcc-mingw-w64-x86-64
- make
- nsis
- sed
- tar
- vim-common
- wget
- zip
before_script:
- echo "127.126.125.124 lgb" | sudo tee -a /etc/hosts 2>/dev/null || true
- cat /etc/hosts || true
- hostname
- set +e
- uname -a ; pwd ; df -h ; id -a
- set -e
- build/install-cross-win-mingw-sdl-on-linux.sh /usr/bin
- set +e
- ps auxwwww || true
- uptime
- build/show-git-info
script:
- set -e
- make -j 2 ARCH=win64 RELEASE=yes OFFICIALBUILD=yes
- set +e
- for a in build/bin/*.win64 ; do x86_64-w64-mingw32-strip $a ; ls -l $a ; done
- cp README.md LICENSE AUTHORS `x86_64-w64-mingw32-sdl2-config --prefix`/bin/*.dll build/bin/
- build/zipper.sh build/bin xemu-binaries-win64.zip build/bin/*.dll build/bin/*.win64 README.md LICENSE AUTHORS
- cp build/bin/xemu-binaries-win64.zip .
- build/nsi-build-native.sh win64 `build/system-config win64 sdl2 dll` || true
- cp build/bin/install-xemu-win64.exe . || true
- set -e
- make -j 2 ARCH=win32 RELEASE=yes OFFICIALBUILD=yes
- set +e
- for a in build/bin/*.win32 ; do i686-w64-mingw32-strip $a ; ls -l $a ; done
- cp README.md LICENSE AUTHORS `i686-w64-mingw32-sdl2-config --prefix`/bin/*.dll build/bin/
- build/zipper.sh build/bin xemu-binaries-win32.zip build/bin/*.dll build/bin/*.win32 README.md LICENSE AUTHORS
- cp build/bin/xemu-binaries-win32.zip .
- build/nsi-build-native.sh win32 `build/system-config win32 sdl2 dll` || true
- cp build/bin/install-xemu-win32.exe . || true
- uptime ; pwd ; ls -l
before_deploy:
- build/deploy/before-deploy.sh xemu-deploy Windows
deploy:
provider: pages
local_dir: xemu-deploy
skip_cleanup: true
github_token: $GHDEPLOYKEY2
keep_history: false
repo: lgblgblgb/xemu-binaries
target_branch: binary-windows-$TRAVIS_BRANCH
email: lgblgblgb@gmail.com
name: Gábor Lénárt aka. LGB
verbose: false
on:
branch:
- master
- next
- dev
- vic
- hmw
- merger
after_deploy:
- build/deploy/discord-webhook.sh success "Windows" ANY:DISCORD_XEMU_SERVER_TEST_CHANNEL_WEBHOOK master,hmw,next:DISCORD_MEGA65_SERVER_XEMU_CHANNEL_WEBHOOK || true
- name: MacOS native compilation
os: osx
osx_image: xcode11
addons:
hostname: lgb
before_script:
- echo "127.126.125.124 lgb" | sudo tee -a /etc/hosts 2>/dev/null || true
- cat /etc/hosts || true
- hostname
- sudo /usr/bin/csrutil status || true
- build/install-dependencies-osx.sh
- set +e
- uname -a ; pwd ; df -h ; id -a
- set -e
- sdl2-config --version --prefix --cflags --libs --static-libs
- set +e
- ps auxwwww || true
- uptime
- build/show-git-info
script:
- set -e
- make -j 2 RELEASE=yes OFFICIALBUILD=yes
- set +e
- for a in build/bin/*.native ; do build/mangle_dylib_osx.sh $a ; strip $a ; done
- build/bin/xmega65.native --help || true
- cp README.md LICENSE AUTHORS build/bin/
- build/zipper.sh build/bin xemu-binaries-osx.zip build/bin/*.dylib build/bin/*.native README.md LICENSE AUTHORS
- cp build/bin/xemu-binaries-osx.zip .
- uptime ; pwd ; ls -l
before_deploy:
- build/dmg-osx-creator.sh
- build/deploy/before-deploy.sh xemu-deploy MacOS
deploy:
provider: pages
local_dir: xemu-deploy
skip_cleanup: true
github_token: $GHDEPLOYKEY2
keep_history: false
repo: lgblgblgb/xemu-binaries
target_branch: binary-osx-$TRAVIS_BRANCH
email: lgblgblgb@gmail.com
name: Gábor Lénárt aka. LGB
verbose: false
on:
branch:
- master
- next
- dev
- vic
- hmw
- discord
- merger
after_deploy:
- build/deploy/discord-webhook.sh success "MacOS(x86)" ANY:DISCORD_XEMU_SERVER_TEST_CHANNEL_WEBHOOK master,hmw,next:DISCORD_MEGA65_SERVER_XEMU_CHANNEL_WEBHOOK || true
env:
global:
secure: "OMFY2V+IyO53dbjtoIkPD+FBffcPI/+EhQkzqqItgqiQshKTZoeK5g8hGx6Vrj+IMKhACOD0juL7uo0yJm6B38HI0t0o8bAuKEdDsHygFRdgKe+vlf6h3FgNl5iUcFm7el352BWtXzB4CRNtoDL32xVBicBnv4LBdcks3qy7YaAN5Rq03QijlemwZxmbXAIGLCdc14fwKPGNtdrpcxNCi2dhL3zVrU2elfvozoUodrnPPmVOHLEyPXkMqlgvGz/NWrFAoq+PzEblmFtnpWFEqi2JdrTb6WYIwo+49cObArh2Musv7+eAzflqylf3yaCx0mTGIETVS+Gc2hoHN1iCMbQI3OMGWw1083Z4cBovCP58+8/wtU0Lu57Ea8QKMKViZPiAd4r0ydcei8GSdful7YYL0eux1nsF+ldB7fv0U8Bc7gWLOPHphtjFqLM7kbomaDDRH97rSYlKDehdKew+olz6xRitHuhWTkzjX92tLX18z0FV/dUc+lGjbf6R1EHg5gbhHtY7ImNktoTSc3KMr3tePESlvNeQzM5Q6zbOI5JIXUve0UqdvFTf9Bq1S73Dfmj0Ckc9kcsbPuIrSTtnoSy5T7P5HsqoUJk+ahtD3mQs/PceYsTvziBedFhUG2RPAPdOq+bg1X9QSoCxcXQthh8ZWzOcTJTwpqFhtTERWoI="