forked from HaxeFoundation/hxcpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
70 lines (63 loc) · 2.85 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
70
version: "{build}"
os: unstable #http://help.appveyor.com/discussions/suggestions/427-pre-install-cygwin
platform:
- Win32
clone_folder: C:\projects\hxcpp
environment:
global:
HAXE_ROOT: C:\projects\haxe
NEKO_ROOT: C:\projects\neko
HAXELIB_ROOT: C:\projects\haxelib
CYG_ARCH: x86
CYG_ROOT: C:\cygwin
CYG_SETUP: C:\cygwin\setup-x86.exe
WODI_ARCH: 32
MINGW_ARCH: i686
install:
# Install ocaml using wodi
- '%CYG_ROOT%\setup-%CYG_ARCH%.exe -q -R "%CYG_ROOT%" -P wget -P dos2unix -P diffutils -P cpio -P make -P patch -P mingw64-%MINGW_ARCH%-gcc-core -P mingw64-%MINGW_ARCH%-gcc-g++ >NUL'
- '%CYG_ROOT%\bin\bash -lc "cygcheck -dc cygwin"'
- '%CYG_ROOT%\bin\bash -lc "wget -q http://ml.ignorelist.com/wodi/8/wodi%WODI_ARCH%.tar.xz -O /tmp/wodi%WODI_ARCH%.tar.xz"'
- '%CYG_ROOT%\bin\bash -lc "cd /tmp && rm -rf wodi%WODI_ARCH% && tar -xf wodi%WODI_ARCH%.tar.xz && bash wodi%WODI_ARCH%/install.sh"'
- '%CYG_ROOT%\bin\bash -lc "godi_add godi-zip"'
- 'set PATH=%PATH%;%CYG_ROOT%\opt\wodi%WODI_ARCH%\bin'
# Install neko
- cinst make
- cinst SQLite -version 3.8.5
- 'git clone --recursive --depth 1 https://github.com/HaxeFoundation/neko.git %NEKO_ROOT%'
- 'cd %NEKO_ROOT%'
- set PATH=%PATH%;%NEKO_ROOT%\bin
- msbuild neko_vc10.sln /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- msbuild libs\libs_vc10.sln /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- copy /y libs\include\gc\gc.dll bin
- cd %NEKO_ROOT%\src
- neko ..\boot\nekoc tools\install.neko
- neko tools\install -nolibs
- neko -version
# Install haxe
- git clone --recursive --depth 1 https://github.com/HaxeFoundation/haxe.git %HAXE_ROOT%
- 'cd %HAXE_ROOT%'
- 'set PATH=%PATH%;%HAXE_ROOT%'
- '%CYG_ROOT%\bin\bash -lc "cd \"$OLDPWD\" && make -s -f Makefile.win WODI=wodi%WODI_ARCH%"'
- '%CYG_ROOT%\bin\bash -lc "cd \"$OLDPWD\" && make -s -f Makefile.win WODI=wodi%WODI_ARCH% tools"'
- cd %APPVEYOR_BUILD_FOLDER%
- mkdir "%HAXELIB_ROOT%"
- haxelib setup "%HAXELIB_ROOT%"
build_script:
- haxelib dev hxcpp %APPVEYOR_BUILD_FOLDER%
- cd %APPVEYOR_BUILD_FOLDER%\tools\run
- haxe compile.hxml
- cd %APPVEYOR_BUILD_FOLDER%\tools\hxcpp
- haxe compile.hxml
- cd %APPVEYOR_BUILD_FOLDER%\project
- neko build.n -verbose
test_script:
# - cd %APPVEYOR_BUILD_FOLDER%\test\ndlls
# - haxe compile.hxml && .\cpp\Test
# - haxe compile64.hxml && .\cpp64\Test
- cd %APPVEYOR_BUILD_FOLDER%\test\haxe
- haxe compile.hxml -debug && .\bin\TestMain-debug
# tests from haxe repo
- cd %HAXE_ROOT%\tests\unit
- haxe compile-cpp.hxml && .\bin\cpp\Test-debug #&& rd /s /q bin\cpp
# - haxe compile-cpp.hxml -D HXCPP_M64 && .\bin\cpp\Test-debug