-
-
Notifications
You must be signed in to change notification settings - Fork 67
/
.travis.yml
54 lines (49 loc) · 2.21 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
language: node_js
dist: xenial
node_js: "6"
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 php 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_16/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
- haxelib install hx3compat
- if ! $USE_PAULFITZ; then sudo apt-get install mono-mcs time php-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 git 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
- if ! $USE_PAULFITZ; then make php; fi
- if ! $USE_PAULFITZ; then make java; fi
- if ! $USE_PAULFITZ; then make cpp; fi
- if ! $USE_PAULFITZ; then make cs; fi
- make ntest_js
- if ! $USE_PAULFITZ; then make ntest_php; fi
- 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