From b45d6702a497b1e8ceb9d0a833e65dc90b0b4a97 Mon Sep 17 00:00:00 2001 From: Andy Li Date: Sat, 6 Dec 2014 23:27:47 +0800 Subject: [PATCH] init AppVeyor config --- appveyor.yml | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 000000000..3c1de3690 --- /dev/null +++ b/appveyor.yml @@ -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