forked from flowplay/extension-iap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (43 loc) · 2.03 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
language: objective-c
env:
global:
- ARTIFACTS_AWS_REGION=us-west-2
- ARTIFACTS_S3_BUCKET=iap-artifacts
- secure: "K37FVGCJKbgwN5IapKGQfNMipm+kvozY41tGgCq+ZsrFA3fmeszNzqdehNYNYOH1ItXVoccop/euxjInR3u8YgeTyvQIj6TubQDVO1CoRt9rA3g7xfp7iWoQcC3Qcs3DloBjuXetA7QXP8+jeO24t43IwmFf8ZVHMVc7GI9nIt4="
- secure: "LYWd+u0bQirdFeTYeXfcuaEaKOqLliNqWmrzbFF42BzjRJ5px0o8RFC9zrQeahvT2+tPDbDIGvWWEwd0t3mAJBoSY066eUf3bT3wGhR8ahd1FspgT6SmDvpqYAPtlBkfWBPLNluqP+nVV7WjPuwiJ1VHG66R+oUnSvxNcw2yqdY="
before_install:
# Use Lime's 64 Mac Neko
- git clone https://github.com/openfl/lime ~/lime
- pushd ~/lime
- git submodule init
- git submodule update
- popd
# Use Lime's Mac 64bit Neko
- sudo ln -s ~/lime/templates/neko/bin/neko-mac64 /usr/bin/neko
- sudo ln -s ~/lime/templates/neko/ndll/mac64/libneko.dylib /usr/lib/libneko.dylib
- sudo ln -s ~/lime/templates/neko/ndll/mac64/regexp.ndll /usr/lib/regexp.ndll
- sudo ln -s ~/lime/templates/neko/ndll/mac64/sqlite.ndll /usr/lib/sqlite.ndll
- sudo ln -s ~/lime/templates/neko/ndll/mac64/std.ndll /usr/lib/std.ndll
- sudo ln -s ~/lime/templates/neko/ndll/mac64/zlib.ndll /usr/lib/zlib.ndll
# Setup Haxe and continue
- wget -c http://haxe.org/file/haxe-3.1.3-osx.tar.gz
- sudo mkdir /usr/lib/haxe
- sudo tar xvzf haxe-3.1.3-osx.tar.gz -C /usr/lib/haxe --strip-components=1
- sudo ln -s /usr/lib/haxe/haxe /usr/bin/haxe
- sudo ln -s /usr/lib/haxe/haxelib /usr/bin/haxelib
- mkdir ~/haxelib
- haxelib setup ~/haxelib
- haxelib install format
- haxelib install hxcpp
# - git clone https://github.com/openfl/lime ~/lime
- haxelib dev lime ~/lime
- haxelib dev iap $(pwd)
- gem install travis-artifacts --no-ri --no-rdoc
script:
- haxelib run lime rebuild iap ios
after_success:
- export COMMIT_NAME=`git describe --tags`
- cd ..
- zip -r iap-$COMMIT_NAME.zip iap/ -x *.git* -x *.DS_Store* -x *project/obj* -x *project/all_objs*
- travis-artifacts upload --path iap-$COMMIT_NAME.zip --target-path artifacts
- wget -qO- http://www.openfl.org/iap-post-hook.php?commit=$COMMIT_NAME