-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
46 lines (37 loc) · 1.12 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
# adapted from https://github.com/andyli/HaxeCI/blob/master/.travis.yml
language: haxe
# keep everything in the test subdir
before_script: cd test
env:
matrix:
- TARGET=interp
- TARGET=cpp
- TARGET=cs
- TARGET=java
- TARGET=node
- TARGET=python
# Test with Current Haxe and Haxe development.
haxe:
- stable
- development
matrix:
# Allow Haxe development to fail.
allow_failures:
- haxe: development
install:
# install haxelibs
- haxelib install buddy
# apt packages for each target
- sudo apt-get update
- sh -c "if [ '$TARGET' = 'cpp' ]; then sudo apt-get install gcc-multilib g++-multilib -y; fi"
- sh -c "if [ '$TARGET' = 'cs' ]; then sudo apt-get install mono-devel -y; fi"
- sh -c "if [ '$TARGET' = 'python' ]; then sudo apt-get install python3 -y; fi"
# haxelib dependencies for each target
- sh -c "if [ '$TARGET' = 'cpp' ]; then haxelib install hxcpp; fi"
- sh -c "if [ '$TARGET' = 'java' ]; then haxelib install hxjava; fi"
- sh -c "if [ '$TARGET' = 'cs' ]; then haxelib install hxcs; fi"
script:
- haxe test.${TARGET}.hxml
branches:
only:
- master