-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (42 loc) · 1.12 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
dist: xenial
addons:
apt:
packages:
- libxinerama-dev
- libasound2-dev
- mesa-common-dev
- libgl-dev
- libxi-dev
- zip
language: node_js
node_js: 10
env:
# - BUILD_TARGET=linux BUILD_OPTS="--compile"
- BUILD_TARGET=linux-hl BUILD_OPTS="--compile"
- BUILD_TARGET=html5 BUILD_OPTS=""
# - BUILD_TARGET=osx --compile
# - BUILD_TARGET=osx-hl --compile
script:
- node Kha/make $BUILD_TARGET $BUILD_OPTS
before_deploy:
- |
if [ $BUILD_TARGET == "linux-hl" ]; then
mv build/${BUILD_TARGET} build/${BUILD_TARGET}-${TRAVIS_BUILD_NUMBER} &&
zip -r royal-ur.zui-client-${BUILD_TARGET}-${TRAVIS_BUILD_NUMBER}.zip build/${BUILD_TARGET}-${TRAVIS_BUILD_NUMBER}
fi
deploy:
- provider: releases
api_key: $GITHUB_TOKEN
file: royal-ur.zui-client-${BUILD_TARGET}-${TRAVIS_BUILD_NUMBER}.zip
skip_cleanup: true
on:
condition: $BUILD_TARGET = linux-hl
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
keep_history: true
committer_from_gh: true
local_dir: build/html5
on:
branch: master
condition: $BUILD_TARGET = html5