This repository has been archived by the owner on Jan 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (52 loc) · 2.17 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
language: haxe
haxe:
- "3.2.0"
env:
- TARGET=flash
- TARGET=cpp
- TARGET=html5
sudo: false
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x32 -extension GLX
- export AUDIODEV=null
install:
- haxelib install openfl > log.txt || cat log.txt
- haxelib install hxcpp > log.txt || cat log.txt
- haxelib install lime > log.txt || cat log.txt
- haxelib install lime-tools > log.txt || cat log.txt
- haxelib install format > log.txt || cat log.txt
- haxelib git ze2d https://github.com/zine92/ZE2D
- if [[ $TARGET == 'cpp' ]]; then haxelib run lime rebuild linux -release -64 -nocffi > log.txt || cat log.txt; fi
- if [[ $TARGET == 'cpp' ]]; then haxelib run lime rebuild linux -release -64 -Dlegacy -nocffi > log.txt || cat log.txt ; fi
- haxelib run lime rebuild tools -nocffi
script:
- cd $(pwd)/samples/
- if [[ $TARGET == 'flash' ]];
then
haxelib run openfl build Plane/application.xml flash;
haxelib run openfl build SimpleTutorial/application.xml flash;
haxelib run openfl build Stars/application.xml flash;
haxelib run openfl build Terry/application.xml flash;
haxelib run openfl build TileSheetLayer/application.xml flash;
fi
- if [[ $TARGET == 'cpp' ]];
then
haxelib run openfl build Plane/application.xml windows;
haxelib run openfl build SimpleTutorial/application.xml windows;
haxelib run openfl build Stars/application.xml windows;
haxelib run openfl build Terry/application.xml windows;
haxelib run openfl build TileSheetLayer/application.xml windows;
fi
- if [[ $TARGET == 'html5' ]];
then
haxelib run openfl build Plane/application.xml html5;
haxelib run openfl build SimpleTutorial/application.xml html5;
haxelib run openfl build Stars/application.xml html5;
haxelib run openfl build Terry/application.xml html5;
haxelib run openfl build TileSheetLayer/application.xml html5;
fi
cache:
directories:
- $HOME/haxe/lib