forked from HaxeFoundation/haxe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
163 lines (152 loc) · 4.67 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
language: generic
env:
global:
# make variables
- OCAMLC=ocamlc.opt
- OCAMLOPT=ocamlopt.opt
- ADD_REVISION=1
# SauceLabs
- secure: SjyKefmjUEXi0IKHGGpcbLAajU0mLHONg8aA8LoY7Q9nAkSN6Aql+fzS38Boq7w1jWn+2FOpr+4jy0l6wVd/bftsF+huFfYpFJmdh8BlKmE0K71zZAral0H1c7YxkuQpPiJCIFGXqtkvev7SWTy0z31u7kuuQeEyW27boXe5cDA=
- secure: sUvWUjCyPuWht4seNa4f2VG9DkvXkhZyLZfjJO9TUAHB2JndS16E2j/qrvKEjycyH6w8tU/B9vnjDRvvGrYXxEXcBEwsJVfkorFnRl9uwGCGIYrzjMhssEl3fMYZK7P304f+gAp5ULrDBX2gIaKeSa8lUNRtz2PsZOieE4kMdhk=
# Bintray
- secure: "ETbwZaeRq8wIVZVyUk1IsNctYVuQa/U2biRkF9pQkz3MEXpaneynclVzNjm8rnm8JqfKcjUDUvQJBP1KYrJYq3tAJFhl31YUnS0FsF3sgLIcnHkhbRA24xJdIlCwHP6QUPoiyPbkec43NRwrF0071KOMD51vgUToXRtAe3o/15g="
- secure: "Fcrrge2f4jFYDOopig2rwkQvgJw6Ra8UK6OwTVk08wecytzVaOJK1TcB22PSvZ+h0ZLJs34T+pXHFjlNuSWm4+CwGSvnltRD1/svjS8zOqK7RzuUdzHz87yruz9PFqV63HTas6qtmgLqp8n/Q6AhtDLF39BTZPyDzEbi9qkwRuI="
- secure: "VBJDQNJ9uvdt0aszo7oU3txuRvjkuLmuHZGOkrd4wE/5B4sX5jzx/+dnrKcNTXJCmQ/rVLuMu9GyxqVjNHlzce678voxdQNOtNkNgpkr1qN9/A9rRnCp77hH27ErdthpWxbmcnE62hAJ83TIKSvn//5lAkx4sMCKS1NXEWQ5qec="
sudo: false
addons:
apt:
packages: &apt_common
- ocaml-native-compilers
- camlp4
- zlib1g-dev
- libgc-dev
apt_targets:
- &apt_cpp [*apt_common, gcc-multilib, g++-multilib]
- &apt_php [*apt_common, php5-cli, php5-mysql, php5-sqlite]
- &apt_cs [*apt_common, mono-devel, mono-mcs]
- &apt_python [*apt_common, python3]
- &apt_flash [*apt_common, libgd2-xpm, ia32-libs, ia32-libs-multiarch]
matrix:
include:
#########
# linux #
#########
- os: linux
env: TEST=third-party
addons: {apt: {packages: [*apt_php, *apt_cpp, *apt_cs, *apt_python]}}
- os: linux
env: TEST=macro
addons: {apt: {packages: [*apt_cs, *apt_python]}}
- os: linux
env:
- TEST=neko
- BINTRAY=1
- os: linux
env:
- TEST=js
- SAUCE=1
addons: {apt: {packages: *apt_common}, sauce_connect: true}
- os: linux
env: TEST=php
addons: {apt: {packages: *apt_php}}
- os: linux
env: TEST=cpp
addons: {apt: {packages: *apt_cpp}}
- os: linux
env: TEST=flash9
addons: {apt: {packages: *apt_flash}}
- os: linux
env: TEST=as3
addons: {apt: {packages: *apt_flash}}
- os: linux
env: TEST=java
- os: linux
env: TEST=cs
addons: {apt: {packages: *apt_cs}}
- os: linux
env: TEST=python
addons: {apt: {packages: *apt_python}}
#######
# osx #
#######
- os: osx
env: TEST=third-party
- os: osx
env: TEST=macro
- os: osx
env:
- TEST=neko
- BINTRAY=1
- os: osx
env: TEST=js
- os: osx
env: TEST=php
- os: osx
env: TEST=cpp
- os: osx
env: TEST=flash9
- os: osx
env: TEST=as3
- os: osx
env: TEST=java
- os: osx
env: TEST=cs
- os: osx
env: TEST=python
before_script:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
mysql -u root -e "CREATE DATABASE haxe_test;";
fi
install:
# Install haxe and neko dependencies
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
travis_retry brew update;
travis_retry brew install caskroom/cask/brew-cask;
travis_retry brew install ocaml camlp4;
fi
# Install neko
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
travis_retry git clone https://github.com/HaxeFoundation/neko.git ~/neko;
cd ~/neko;
make os=${TRAVIS_OS_NAME} -s;
export PATH="$PATH:$HOME/neko/bin";
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/neko/bin";
export NEKOPATH="$HOME/neko/bin";
cd $TRAVIS_BUILD_DIR;
elif [ "${TRAVIS_OS_NAME}" = "osx" ]; then
travis_retry brew install neko --HEAD;
fi
script:
- make package_src -s
- make -s
- make tools -s
- make package_bin -s
- export PATH="$PATH:$TRAVIS_BUILD_DIR"
- export HAXE_STD_PATH="$TRAVIS_BUILD_DIR/std"
- cd tests/
- mkdir ~/haxelib && haxelib setup ~/haxelib
- haxe -version
- haxe RunCi.hxml
- neko RunCi.n
- cd $TRAVIS_BUILD_DIR
branches:
except:
# A hack to prevent building for tags, assuming they all start with a number.
# https://github.com/travis-ci/travis-ci/issues/1532
- /^[0-9]/
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/95a5fa471c27beee8e7c
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false
deploy:
provider: bintray
on:
all_branches: true
condition: "-e extra/bintray.json"
skip_cleanup: true
file: "extra/bintray.json"
user: "${BINTRAY_USERNAME}"
key: "${BINTRAY_API_KEY}"