forked from HaxeFoundation/haxe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
69 lines (61 loc) · 2.48 KB
/
appveyor.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
version: "{build}"
environment:
global:
HAXELIB_ROOT: C:/projects/haxelib
CYG_ROOT: C:/cygwin
ADD_REVISION: 1
OCAMLOPT: ocamlopt.opt
MYSQL_PATH: C:\Program Files\MySQL\MySQL Server 5.7
MYSQL_USER: root
MYSQL_PASSWORD: Password12!
matrix:
- TEST: "neko,python,cs,java,macro"
- TEST: "cpp"
services:
- mysql
skip_tags: true
cache:
- ocaml-installer.exe -> appveyor.yml
install:
- 'git submodule update --init --recursive'
# Install ocaml
- if not exist "ocaml-installer.exe" (
curl -fsS -o ocaml-installer.exe --retry 3 http://gallium.inria.fr/~protzenk/caml-installer/ocaml-4.02.3-i686-mingw64-installer4-opam.exe
)
- ocaml-installer.exe /S
- 'C:\Users\Public\Desktop\cygwin-setup.exe -g -q -R "%CYG_ROOT%" -P make -P git -P mingw64-i686-zlib'
- 'set PATH=%PATH%;%CYG_ROOT%/usr/i686-w64-mingw32/sys-root/mingw/bin'
# Install neko
- choco install neko --prerelease --ignore-dependencies -s 'https://ci.appveyor.com/nuget/neko' -y
- RefreshEnv
# do not use chocolatey's shim, which is buggy when processing arguments
# see https://github.com/chocolatey/shimgen/issues/27
- set PATH=C:\ProgramData\chocolatey\lib\neko;%PATH%
- neko -version
# setup python
- cmd: mklink C:\Python34-x64\python3.exe C:\Python34-x64\python.exe
- set PATH=%PATH%;C:\Python34-x64
build_script:
- 'cd %APPVEYOR_BUILD_FOLDER%'
- '%CYG_ROOT%/bin/bash -lc "echo initialize"'
- '%CYG_ROOT%/bin/bash -lc "cd \"$OLDPWD\" && make -s -f Makefile.win package_src"'
- '%CYG_ROOT%/bin/bash -lc "cd \"$OLDPWD\" && make -s -f Makefile.win"'
- 'set PATH=%PATH%;%APPVEYOR_BUILD_FOLDER%'
- 'set HAXEPATH=%APPVEYOR_BUILD_FOLDER%'
- '%CYG_ROOT%/bin/bash -lc "cd \"$OLDPWD\" && make -s -f Makefile.win package_bin"'
- dir %APPVEYOR_BUILD_FOLDER%\out
- cd %APPVEYOR_BUILD_FOLDER%/tests/
- mkdir "%HAXELIB_ROOT%"
- haxelib setup "%HAXELIB_ROOT%"
# setup mysql for testing
- set PATH=%MYSQL_PATH%\bin;%PATH%
- mysql --user=%MYSQL_USER% --password=%MYSQL_PASSWORD% -e "create user 'travis'@'localhost';"
- mysql --user=%MYSQL_USER% --password=%MYSQL_PASSWORD% -e "create database haxe_test;"
- mysql --user=%MYSQL_USER% --password=%MYSQL_PASSWORD% -e "grant all on haxe_test.* to 'travis'@'localhost';"
test_script:
- cd %APPVEYOR_BUILD_FOLDER%/tests/
- haxe -version
- haxe RunCi.hxml
- neko RunCi.n
artifacts:
- path: out/*