-
Notifications
You must be signed in to change notification settings - Fork 124
/
.travis.yml
62 lines (56 loc) · 2.31 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
61
62
language: objective-c
env:
global:
- HXCPP_COMPILE_CACHE=~/hxcache
os: osx
osx_image: xcode12
cache:
directories:
- $HXCPP_COMPILE_CACHE
before_install:
- wget -c https://github.com/HaxeFoundation/neko/releases/download/v2-3-0/neko-2.3.0-osx64.tar.gz
- sudo mkdir /usr/local/lib/neko
- sudo mkdir /usr/local/lib/haxe
- sudo tar xvzf neko-2.3.0-osx64.tar.gz -C /usr/local/lib/neko
- sudo cp /usr/local/lib/neko/neko-2.3.0-osx64/*.ndll /usr/local/lib/haxe
- sudo cp /usr/local/lib/neko/neko-2.3.0-osx64/neko /usr/local/lib/haxe
- sudo ln -s /usr/local/lib/neko/neko-2.3.0-osx64/libneko.2.3.0.dylib /usr/local/lib/libneko.2.dylib
- sudo ln -s /usr/local/lib/neko/neko-2.3.0-osx64/libneko.2.3.0.dylib /usr/local/lib/libneko.dylib
- sudo ln -s /usr/local/lib/neko/neko-2.3.0-osx64/neko /usr/local/bin/neko
- sudo cp /usr/local/lib/neko/neko-2.3.0-osx64/*.ndll /usr/local/bin
- sudo ln -s /usr/local/lib/neko/libneko.2.dylib /usr/local/lib/neko/libneko.2.dylib
- sudo ln -s /usr/local/lib/neko/libneko.dylib /usr/local/lib/neko/libneko.dylib
- sudo ln -s /usr/local/lib/neko/libneko.2.dylib /usr/local/bin/libneko.2.dylib
- sudo ln -s /usr/local/lib/neko/libneko.dylib /usr/local/bin/libneko.dylib
- wget -c https://github.com/HaxeFoundation/haxe/releases/download/4.1.4/haxe-4.1.4-osx.tar.gz
- sudo tar xvzf haxe-4.1.4-osx.tar.gz -C /usr/local/lib/haxe --strip-components=1
- sudo ln -s /usr/local/lib/neko/libneko.dylib /usr/local/lib/haxe/libneko.dylib
- sudo ln -s /usr/local/lib/neko/libneko.2.dylib /usr/local/lib/haxe/libneko.2.dylib
- sudo ln -s /usr/local/lib/haxe/haxe /usr/local/bin/haxe
- sudo ln -s /usr/local/lib/haxe/haxelib /usr/local/bin/haxelib
- mkdir ~/haxelib
- haxelib setup ~/haxelib
- haxelib dev nme $(pwd)
- git clone https://github.com/HaxeFoundation/hxcpp ~/hxcpp --depth 1
- haxelib dev hxcpp ~/hxcpp
- cd ~/hxcpp/tools/hxcpp
- haxe compile.hxml
- cd ~/hxcpp/tools/run
- haxe compile.hxml
- haxelib -notimeout install nme-toolkit
- haxelib -notimeout install format
- haxelib -notimeout install gm2d
script:
- cd $TRAVIS_BUILD_DIR/tools/nme
- haxe compile.hxml
- cd $TRAVIS_BUILD_DIR/project
- neko build.n mac-m64
- cd $TRAVIS_BUILD_DIR/tools/nme
- haxelib run nme setup
- haxe test.hxml
- neko bin/TestMain.n
- cd $TRAVIS_BUILD_DIR/tests
- haxe -x RunAll
- cd $TRAVIS_BUILD_DIR/tests/haxe
- haxe compile.hxml
- bin/TestMain