forked from paulfitz/daff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (47 loc) · 2.1 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
language: node_js
node_js: "0.11"
env:
- USE_PAULFITZ=true PATH=$PWD/haxerb/bin:$PATH HAXE_STD_PATH=$PWD/haxerb/lib/haxe/std:$PWD/haxerb/lib/haxe/extra/haxelib_src/src
- USE_PAULFITZ=false
# Install Haxe before running the test.
before_install:
- sudo apt-get update
- if ! $USE_PAULFITZ; then sudo apt-get install python-software-properties -y; fi
- if ! $USE_PAULFITZ; then sudo add-apt-repository ppa:haxe/releases -y; fi
- if ! $USE_PAULFITZ; then sudo apt-get update; fi
install:
- sudo apt-get install time php5 sqlite3 -y
- if ! $USE_PAULFITZ; then sudo apt-get install haxe -y; fi
- if $USE_PAULFITZ; then wget https://github.com/paulfitz/haxe/releases/download/rb_v3.1.1_12/haxerb.zip; fi
- if $USE_PAULFITZ; then unzip -q haxerb.zip; fi
- sudo apt-get install gcc-multilib g++-multilib -y # VM is 64bit but hxcpp builds 32bit
- mkdir -p ~/haxelib
- haxelib setup ~/haxelib
- if ! $USE_PAULFITZ; then sudo apt-get install mono-mcs time php5-cli; fi
- if $USE_PAULFITZ; then sudo apt-get install python3; fi
- if ! $USE_PAULFITZ; then haxelib install hxcpp; fi
- if ! $USE_PAULFITZ; then haxelib install hxjava; fi
- if ! $USE_PAULFITZ; then haxelib install hxcs; fi
- npm install
- if $USE_PAULFITZ; then hg -y clone https://bitbucket.org/eshuy/lib3to2; cd lib3to2; sudo python3 ./setup.py install; cd ..; fi
script:
- make test
- make js
- if $USE_PAULFITZ; then make py; fi
- if $USE_PAULFITZ; then make rb; fi
- make php
- if ! $USE_PAULFITZ; then make java; fi
- if ! $USE_PAULFITZ; then make cpp; fi
- if ! $USE_PAULFITZ; then make cs; fi
- make ntest_js
- make ntest_php
- if ! $USE_PAULFITZ; then make ntest_java; fi
- if $USE_PAULFITZ; then make ntest_py; fi
- if $USE_PAULFITZ; then make ntest_rb; fi
- ./test/integration_git.sh js
- ./test/integration_sqlite.sh js
- if $USE_PAULFITZ; then make py2; fi
- if $USE_PAULFITZ; then ./test/integration_git.sh py2; fi
- if $USE_PAULFITZ; then ./test/integration_git.sh py3; fi
- if $USE_PAULFITZ; then ./test/integration_sqlite.sh py2; fi
- if $USE_PAULFITZ; then ./test/integration_sqlite.sh py3; fi