forked from HaxeFoundation/haxe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
85 lines (77 loc) · 2.43 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
language: cpp
os:
- linux
- osx
env:
global:
# make variables
- OCAMLC=ocamlc.opt
- OCAMLOPT=ocamlopt.opt
- ADD_REVISION=1
# SAUCE_USERNAME
- secure: SjyKefmjUEXi0IKHGGpcbLAajU0mLHONg8aA8LoY7Q9nAkSN6Aql+fzS38Boq7w1jWn+2FOpr+4jy0l6wVd/bftsF+huFfYpFJmdh8BlKmE0K71zZAral0H1c7YxkuQpPiJCIFGXqtkvev7SWTy0z31u7kuuQeEyW27boXe5cDA=
# SAUCE_ACCESS_KEY
- secure: sUvWUjCyPuWht4seNa4f2VG9DkvXkhZyLZfjJO9TUAHB2JndS16E2j/qrvKEjycyH6w8tU/B9vnjDRvvGrYXxEXcBEwsJVfkorFnRl9uwGCGIYrzjMhssEl3fMYZK7P304f+gAp5ULrDBX2gIaKeSa8lUNRtz2PsZOieE4kMdhk=
matrix:
- TEST=third-party
- TEST=macro
- TEST=neko
- TEST=js
- TEST=php
- TEST=cpp
- TEST=flash9
- TEST=as3
- TEST=java
- TEST=cs
- TEST=python
matrix:
# fast_finish: true #https://github.com/travis-ci/travis-ci/issues/1696
before_script:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
mysql -u root -e "CREATE DATABASE haxe_test;";
fi
install:
# For our forks that do not have mult-os enabled...
- if [ -z "${TRAVIS_OS_NAME}" ]; then
export TRAVIS_OS_NAME=linux;
fi
# Install haxe and neko dependencies
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
travis_retry sudo apt-get update -qq;
travis_retry sudo apt-get install ocaml-native-compilers zlib1g-dev libgc-dev -qq;
fi
- 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 && sudo make install -s;
cd $TRAVIS_BUILD_DIR;
fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
travis_retry brew install neko --HEAD;
fi
script:
- make -s
- make tools -s
- sudo make install -s
- cd tests/
- mkdir ~/haxelib && haxelib setup ~/haxelib
- haxe -version
- haxe RunCi.hxml
- neko RunCi.n
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