forked from DoclerLabs/hexDSL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
84 lines (77 loc) · 3.95 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
74
75
76
77
78
79
80
81
82
83
84
sudo: required
dist: trusty
language: haxe
# haxe versions : http://haxe.org/website-content/downloads/versions.json
haxe:
- "3.4.7"
- development
matrix:
allow_failures:
- haxe: development
before_install:
- echo $TRAVIS_BRANCH
- export DEPENDENCIES_BRANCH=$TRAVIS_BRANCH
- echo $TRAVIS_TAG
- if [[ "$TRAVIS_TAG" != "" ]]; then export DEPENDENCIES_BRANCH=$TRAVIS_TAG; fi
- echo $DEPENDENCIES_BRANCH
- sudo sed -i -e 's/deb http/deb [arch=amd64] http/' "/etc/apt/sources.list.d/google-chrome.list" "/opt/google/chrome/cron/google-chrome"
- sudo dpkg --add-architecture i386
- sudo apt-get update
- sudo apt-get install -qq libcurl3:i386
- sudo apt-get install -qq libglib2.0-0:i386
- sudo apt-get install -qq libx11-6:i386
- sudo apt-get install -qq libxext6:i386
- sudo apt-get install -qq libxt6:i386
- sudo apt-get install -qq libxcursor1:i386
- sudo apt-get install -qq libnss3:i386
- sudo apt-get install -qq libgtk2.0-0:i386
install:
- haxelib newrepo
- export BRANCH_REF=$DEPENDENCIES_BRANCH
# hexLog
- if [[ $( git ls-remote https://github.com/DoclerLabs/hexLog.git $DEPENDENCIES_BRANCH --heads | wc -l ) == "0" ]]; then export DEPENDENCIES_BRANCH=master; else export DEPENDENCIES_BRANCH=$BRANCH_REF; fi
- echo Checking out $DEPENDENCIES_BRANCH
- git clone --recursive -b $DEPENDENCIES_BRANCH https://github.com/DoclerLabs/hexLog.git ./hexlog
- haxelib dev hexlog ./hexlog
# hexCore
- if [[ $( git ls-remote https://github.com/DoclerLabs/hexCore.git $DEPENDENCIES_BRANCH --heads | wc -l ) == "0" ]]; then export DEPENDENCIES_BRANCH=master; else export DEPENDENCIES_BRANCH=$BRANCH_REF; fi
- echo Checking out $DEPENDENCIES_BRANCH
- git clone --recursive -b $DEPENDENCIES_BRANCH https://github.com/DoclerLabs/hexCore.git ./hexcore
- haxelib install ./hexcore/haxelib.json --always
- haxelib dev hexcore ./hexcore
# hexUnit
- if [[ $( git ls-remote https://github.com/DoclerLabs/hexUnit.git $DEPENDENCIES_BRANCH --heads | wc -l ) == "0" ]]; then export DEPENDENCIES_BRANCH=master; else export DEPENDENCIES_BRANCH=$BRANCH_REF; fi
- echo Checking out $DEPENDENCIES_BRANCH
- git clone --recursive -b $DEPENDENCIES_BRANCH https://github.com/DoclerLabs/hexUnit.git ./hexunit
- haxelib dev hexunit ./hexunit
# hexReflection
- if [[ $( git ls-remote https://github.com/DoclerLabs/hexReflection.git $DEPENDENCIES_BRANCH --heads | wc -l ) == "0" ]]; then export DEPENDENCIES_BRANCH=master; else export DEPENDENCIES_BRANCH=$BRANCH_REF; fi
- echo Checking out $DEPENDENCIES_BRANCH
- git clone --recursive -b $DEPENDENCIES_BRANCH https://github.com/DoclerLabs/hexReflection.git ./hexreflection
- haxelib dev hexreflection ./hexreflection
# hexAnnotation
- if [[ $( git ls-remote https://github.com/DoclerLabs/hexAnnotation.git $DEPENDENCIES_BRANCH --heads | wc -l ) == "0" ]]; then export DEPENDENCIES_BRANCH=master; else export DEPENDENCIES_BRANCH=$BRANCH_REF; fi
- echo Checking out $DEPENDENCIES_BRANCH
- git clone --recursive -b $DEPENDENCIES_BRANCH https://github.com/DoclerLabs/hexAnnotation.git ./hexannotation
- haxelib dev hexannotation ./hexannotation
# hexInject
- if [[ $( git ls-remote https://github.com/DoclerLabs/hexInject.git $DEPENDENCIES_BRANCH --heads | wc -l ) == "0" ]]; then export DEPENDENCIES_BRANCH=master; else export DEPENDENCIES_BRANCH=$BRANCH_REF; fi
- echo Checking out $DEPENDENCIES_BRANCH
- git clone --recursive -b $DEPENDENCIES_BRANCH https://github.com/DoclerLabs/hexInject.git ./hexinject
- haxelib dev hexinject ./hexinject
# hexDSL
- haxelib dev hexdsl .
- export DISPLAY=:99.0;
- export AUDIODEV=null;
- haxe flash/install.hxml
script:
- haxe build-php.hxml && php bin/index.php
- haxe build-neko.hxml && neko bin/MainTest.n
- haxe build-js.hxml && node bin/MainTest.js
- haxe build-flash.hxml -D fdb && haxe flash/run.hxml bin/MainTest.swf
notifications:
email:
recipients: