forked from haxeui/hxWidgets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
87 lines (77 loc) · 1.91 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
language: haxe
dist: trusty
os:
- linux
- osx
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/02e5112c59e387a9d167
- https://webhooks.gitter.im/e/2cf2b3fce38bfb758c65
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always
haxe:
- "3.4.0"
- "3.4.2"
- "4.0.2"
env:
- HXCPP=haxelib
- HXCPP=dev
matrix:
exclude:
- haxe: "3.4.0"
env: HXCPP=dev
- haxe: "3.4.2"
env: HXCPP=dev
- haxe: "4.0.2"
env: HXCPP=dev
sudo: false
addons:
apt:
packages:
- libwebkitgtk-dev
- libgtk2.0-dev
- zlib1g
- libpcre3
install:
- mkdir haxelib
- haxelib setup haxelib
# Build wxWidgets for linux (because webview is only in ubuntu 16.04+), brew it for osx
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.3/wxWidgets-3.1.3.tar.bz2;
tar xjf wxWidgets-3.1.3.tar.bz2;
cd wxWidgets-3.1.3;
./configure > log.txt || log.txt;
make;
export PATH=$(pwd):$PATH;
else
brew update;
brew install wxwidgets;
brew install libgc;
fi
# Print wx-config to know more
- wx-config --cxxflags
- wx-config --libs
# Haxe part
- if [ "${HXCPP}" = "haxelib" ]; then
haxelib install hxcpp;
else
git clone https://github.com/HaxeFoundation/hxcpp.git --depth=1;
haxelib dev hxcpp hxcpp;
cd hxcpp/tools/hxcpp;
haxe compile.hxml;
cd ../build;
haxe compile.hxml;
cd ../../project;
if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
neko build.n linux-m64;
else
neko build.n;
fi;
fi
- haxelib dev hxWidgets $TRAVIS_BUILD_DIR
- haxelib install hscript
script:
- cd $TRAVIS_BUILD_DIR/samples/00-Showcase
- haxe build.hxml