-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
37 lines (33 loc) · 1.19 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
language: cpp
env:
global:
secure: ZY3KJVjJ2sibLxxrxJOQUOlUMAlg30xipU1gKNvmcvyR2lCLaapB/tXzzoxqqixqE2b00mz5OYM3C0KtSmNy1j/Ss8ctNGPIMMpUz3vRfWjyyakIk/txJ4QZkMvB6SyTzZ6NQfg5TmOQOZSMuroyAIwgzUs2urTtc43FueTjdho=
install:
- sudo apt-get update
- sudo apt-get install python-software-properties -y # for the next command
- sudo add-apt-repository ppa:eyecreate/haxe -y
- sudo apt-get update
- sudo apt-get install haxe -y
- sudo apt-get install gcc-multilib g++-multilib -y # for hxcpp
- mkdir ~/haxelib && haxelib setup ~/haxelib
- haxelib install hxcpp 3.1.39 > log.txt || cat log.txt
- haxelib list
script:
- cd $TRAVIS_BUILD_DIR/project
- haxelib run hxcpp build.xml
- haxelib run hxcpp build.xml -DHXCPP_M64
- cd $TRAVIS_BUILD_DIR
- haxelib dev hxSerial .
- haxe compile.hxml -D HXCPP_M64
- cp -f ndll/Linux64/* bin
- cd $TRAVIS_BUILD_DIR/bin
- ./Test
- neko Test.n
- cd $TRAVIS_BUILD_DIR
- haxe compile-cpp.hxml
- cp -f ndll/Linux/* bin
- cd $TRAVIS_BUILD_DIR/bin
- ./Test
after_success:
- cd $TRAVIS_BUILD_DIR
- if [[ $TRAVIS_TAG = v[0-9]* ]]; then zip haxelib.zip -r haxelib.json README.md hxSerial ndll && haxelib submit haxelib.zip <<< $HAXELIB_PW; fi;