forked from openfl/openfl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
73 lines (63 loc) · 3.34 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
63
64
65
66
67
68
69
70
71
72
73
language: haxe
haxe:
#- 3.2.0
- 3.2.1
- development
env:
- TARGET=flash
- TARGET=neko
- TARGET=cpp
- TARGET=html5
- TARGET=docs
matrix:
allow_failures:
- haxe: development
sudo: false
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x32 -extension GLX
- export AUDIODEV=null
install:
- haxelib dev openfl $(pwd)
- git clone --recursive https://github.com/openfl/lime ~/lime --depth 1 > log.txt || cat log.txt
#- git clone --recursive https://github.com/openfl/lime ~/lime > log.txt || cat log.txt
#- cd ~/lime
#- git reset --hard 87573bb26119cb4be4b3c4ef0ebc4042ecba59e3
- haxelib dev lime ~/lime
- yes | haxelib install compiletime
- if [[ $TRAVIS_HAXE_VERSION != 'development' ]]; then yes | haxelib install hxcpp > log.txt || cat log.txt ; fi
- if [[ $TRAVIS_HAXE_VERSION == 'development' ]]; then git clone https://github.com/haxefoundation/hxcpp ~/hxcpp --depth 1 > log.txt || cat log.txt ; fi
- if [[ $TRAVIS_HAXE_VERSION == 'development' ]]; then haxelib dev hxcpp ~/hxcpp ; fi
- if [[ $TRAVIS_HAXE_VERSION == 'development' ]]; then cd ~/hxcpp/tools/hxcpp && haxe compile.hxml ; fi
- if [[ $TRAVIS_HAXE_VERSION == 'development' ]]; then cd ~/hxcpp/project && neko build.n linux-m64 ; fi
- yes | haxelib install format > log.txt || cat log.txt
- if [[ $TARGET == 'docs' ]]; then git clone https://github.com/openfl/dox ~/dox --depth 1 > log.txt || cat log.txt ; fi
- if [[ $TARGET == 'docs' ]]; then haxelib dev dox ~/dox ; fi
- yes | haxelib install mcover > log.txt || cat log.txt
- yes | haxelib install hamcrest > log.txt || cat log.txt
- git clone https://github.com/jgranick/MassiveUnit ~/munit --depth 1 > log.txt || cat log.txt
- haxelib dev munit ~/munit/src
- cd ~/munit/tool
- haxe build.hxml
- if [[ $TARGET == 'cpp' ]] || [[ $TARGET == 'neko' ]]; then haxelib run lime rebuild linux -release -64 -nocffi > log.txt || cat log.txt; fi
#- if [[ $TARGET == 'cpp' ]] || [[ $TARGET == 'neko' ]]; then haxelib run lime rebuild linux -debug -64 -nocffi > log.txt || cat log.txt; fi
- haxelib run lime rebuild tools -nocffi
before_script:
- cd $TRAVIS_BUILD_DIR/tests/unit
- haxelib run munit gen
script:
#- haxelib run lime test neko
#- haxelib run lime test neko -Ddisable-cffi
- if [[ $TARGET == 'neko' ]]; then haxelib run lime build neko -nocffi ; fi
- if [[ $TARGET == 'neko' ]]; then haxelib run lime build neko -Ddisable-cffi -nocffi ; fi
- if [[ $TARGET == 'flash' ]]; then haxelib run munit test -as3 -norun -nocffi ; fi
- if [[ $TARGET == 'html5' ]]; then haxelib run munit test -browser phantomjs -nocffi ; fi
- if [[ $TARGET == 'cpp' ]]; then haxelib run lime test linux --window-hardware=false ; fi
#- if [[ $TARGET == 'cpp' ]]; then haxelib run lime test linux --window-hardware=false -debug ; fi
- if [[ $TARGET == 'docs' ]]; then cd $TRAVIS_BUILD_DIR/docs && haxe build.hxml ; fi
# Functional testing
- if [[ $TARGET == 'neko' ]]; then cd $TRAVIS_BUILD_DIR/tests/functional && haxe build_neko.hxml && neko tests.n ; fi
- if [[ $TARGET == 'cpp' ]]; then cd $TRAVIS_BUILD_DIR/tests/functional && haxe build_cpp.hxml && ./bin/FunctionalTest ; fi
notifications:
slack: openfl:sBwVO0kgB7EuWLYzZzUezVIz