forked from haxeui/haxeui-kha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (37 loc) · 1.25 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
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=debug-html5 BUILD_OPTS=""
- BUILD_TARGET=html5 BUILD_OPTS=""
- BUILD_TARGET=linux BUILD_OPTS="--compile"
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/593f9ec49210b8694911
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always
script:
- git clone --recursive --single-branch --depth=1 https://github.com/Kode/Kha.git
- mkdir Libraries
- cd Libraries
- git clone --branch $TRAVIS_BRANCH --single-branch --depth=1 https://github.com/haxeui/haxeui-core.git
- git clone --branch $TRAVIS_BRANCH --single-branch --depth=1 https://github.com/haxeui/haxeui-kha.git
- git clone --single-branch --depth=1 https://github.com/haxefoundation/hscript.git
- cd ..
- mkdir src
- cd src
- printf "package;\n\nclass Main {\npublic static function main() {\n}\n}" > Main.hx
- cd ..
- cp Libraries/haxeui-kha/khafile.js khafile.js
- node Kha/make $BUILD_TARGET $BUILD_OPTS