forked from HaxeFoundation/hxcpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request HaxeFoundation#140 from andyli/travis
init AppVeyor config
- Loading branch information
Showing
1 changed file
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
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: | ||
- 'git submodule update --init --recursive' | ||
# 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 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 https://github.com/HaxeFoundation/haxe.git %HAXE_ROOT% | ||
- 'cd %HAXE_ROOT%' | ||
- 'set PATH=%PATH%;%HAXE_ROOT%' | ||
- '%CYG_ROOT%\bin\bash -lc "cd \"$OLDPWD\" && make -f Makefile.win WODI=wodi%WODI_ARCH%"' | ||
- '%CYG_ROOT%\bin\bash -lc "cd \"$OLDPWD\" && make -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 |