-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
83 lines (76 loc) · 2.06 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
language: haxe
# TravisCI by default run on linux.
# Let's enable both linux and mac builds because why not?
os:
- linux
# - osx
dist: xenial
haxe:
- "4.2.2"
# - development
neko: "2.3.0"
matrix:
# Allow Haxe development to fail.
allow_failures:
- haxe: development
addons:
# This is the preferred way to install apt packages.
# However, it only allow some but not all packages.
# Alternatively, we can use `sudo apt-get install ...` in the `install:` section.
# http://docs.travis-ci.com/user/apt/#Adding-APT-Packages
apt:
packages:
# C++ (for rebuilding hxcpp)
- gcc-multilib
- g++-multilib
# Python
- python3
# PHP
- php-cli
- php-mbstring
# C#
- mono-devel
- mono-mcs
# Flash
- libglib2.0
- libfreetype6
# Lua
- cmake
- lua5.1
- luarocks
- libpcre3-dev
- libssl-dev
install:
# os-specific config
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
export DISPLAY=:99.0;
export AUDIODEV=null;
elif [ "${TRAVIS_OS_NAME}" = "osx" ]; then
brew update;
brew cask uninstall oclint;
brew cask install phantomjs;
brew install mono;
brew upgrade python;
fi
# Haxe Lua dependencies
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
sudo luarocks install luasec OPENSSL_LIBDIR=/usr/lib/x86_64-linux-gnu;
sudo luarocks install lrexlib-pcre PCRE_LIBDIR=/usr/lib/x86_64-linux-gnu;
sudo luarocks install luabitop;
elif [ "${TRAVIS_OS_NAME}" = "osx" ]; then
brew install lua luarocks pcre python;
sudo luarocks install lrexlib-pcre;
sudo luarocks install luasocket;
fi
- sudo luarocks install luv
- sudo luarocks install environ
- sudo luarocks install luautf8
-
# Install haxelibs
- haxelib install munit
- haxelib git hamcrest https://github.com/mikestead/hamcrest-haxe.git master src --always
- haxelib git hexinject https://github.com/CrazyFlasher/hexInject.git 74344becbb0d4318ca99e9502a7f849bcea3003f
- haxelib install dox
- haxelib install hxnodejs
script:
- haxe package.hxml