forked from unihx/unihx
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
33 lines (29 loc) · 1.09 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
# example travis.yml haxe configuration
language: objective-c # change this to c to test on a linux machine
env:
global:
- OS=mac # add this too to let the script know that the OS is a mac
# - ARCH=i686 # add this to run in 32-bit mode. See availability at README
matrix:
- TARGET=cs
matrix:
fast_finish: true
before_install: # clone travis-hx repo
- travis_retry git clone --depth=50 --branch=master git://github.com/waneck/travis-hx.git ~/travis-hx
install: # setup the target
- ~/travis-hx/setup.sh
- haxelib install utest
- haxelib dev unihx "$TRAVIS_BUILD_DIR"
- cd ~
- curl -L "https://docs.google.com/uc?export=download&id=0B8FjDKR0nfqoQmpOYW44S2c3SU0" -o mac.tar.gz
- tar -zxf mac.tar.gz
- chmod +x test.app/Contents/MacOS/test
script:
- cd $TRAVIS_BUILD_DIR/tests
# build the target. This will call haxe with the HXFLAGS and HXFLAGS_EXTRA environment variables
- haxe build.hxml
- mono --debug bin/bin/CmdTests-Debug.exe
- haxe build-unity.hxml
- cp bin/bin/bin-Debug.dll ~/test.app/Contents/Data/Managed
- cd ~
- ./test.app/Contents/MacOS/test