forked from HaxeFoundation/hxcpp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
36 lines (33 loc) · 1.71 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
language: cpp
os:
- linux
- osx
install:
- if [ -z "${TRAVIS_OS_NAME}" ]; then export TRAVIS_OS_NAME=linux; fi; # for our forks that do not have multi-os enabled.
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then travis_retry sudo apt-get update; travis_retry sudo apt-get install ocaml-native-compilers zlib1g-dev libgc-dev gcc-multilib g++-multilib -y; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then travis_retry brew update; travis_retry brew install ocaml camlp4; fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then travis_retry git clone https://github.com/HaxeFoundation/neko.git ~/neko && cd ~/neko && make os=${TRAVIS_OS_NAME} && sudo make install && cd $TRAVIS_BUILD_DIR; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then travis_retry brew install neko --HEAD; fi
- neko -version
- git clone --recursive https://github.com/HaxeFoundation/haxe.git ~/haxe && cd ~/haxe && make OCAMLOPT=ocamlopt.opt ADD_REVISION=1 && make tools && sudo make install && cd $TRAVIS_BUILD_DIR
- haxe -version
- mkdir ~/haxelib && haxelib setup ~/haxelib
- haxelib dev hxcpp $TRAVIS_BUILD_DIR
script:
- cd ${TRAVIS_BUILD_DIR}/tools/run
- haxe compile.hxml
- cd ${TRAVIS_BUILD_DIR}/tools/hxcpp
- haxe compile.hxml
- cd ${TRAVIS_BUILD_DIR}/project
- neko build.n -verbose
- haxe compile-cppia.hxml
- cd ${TRAVIS_BUILD_DIR}/test
- haxe --run RunTests cffi
- haxe --run RunTests haxe
- haxe --run RunTests ndll-dynamic
- haxe --run RunTests ndll-static
- haxe --run RunTests ndll-64
- cd ~/haxe/tests/unit
- haxe compile-cpp.hxml -D HXCPP_M32 && ./bin/cpp/Test-debug && rm -rf bin/cpp
- haxe compile-cpp.hxml -D HXCPP_M64 && ./bin/cpp/Test-debug
- haxe compile-cppia.hxml -debug && haxelib run hxcpp ./bin/unit.cppia