Appveyor for windows CI

This commit is contained in:
Isuru Fernando 2016-03-31 16:02:59 +05:30
parent 9f6f0818c7
commit 947fb0832c
3 changed files with 37 additions and 2 deletions

5
.appveyor_msys_build.sh Normal file
View File

@ -0,0 +1,5 @@
export PATH=/c/msys64/mingw$ABI/bin:$PATH
cd /c/projects/mpir
./configure ABI=$ABI
make
make check

31
appveyor.yml Normal file
View File

@ -0,0 +1,31 @@
version: 1.0.{build}
build:
verbosity: minimal
environment:
matrix:
- BUILD_TYPE: Release
COMPILER: MSVC15
PLATFORM: x64
- BUILD_TYPE: Release
COMPILER: MSVC15
PLATFORM: Win32
- COMPILER: MinGW-w64
ABI: 64
- COMPILER: MinGW-w64
ABI: 32
- BUILD_TYPE: Debug
COMPILER: MSVC15
PLATFORM: x64
- BUILD_TYPE: Debug
COMPILER: MSVC15
PLATFORM: Win32
build_script:
- if [%COMPILER%]==[MinGW-w64] C:\msys64\usr\bin\sh.exe --login /c/projects/mpir/.appveyor_msys_build.sh
- if [%COMPILER%]==[MSVC15] cd build.vc14
- if [%COMPILER%]==[MSVC15] msbuild.bat gc lib %PLATFORM% %BUILD_TYPE% +tests
test_script:
- if [%COMPILER%]==[MSVC15] cd mpir-tests
- if [%COMPILER%]==[MSVC15] python %cd%\run-tests.py 0

View File

@ -30,8 +30,7 @@ if /i "%libp%" == "LIB" (
)
if /i "%5" EQU "+tests" (
set TESTDIR=.\mpir-tests\
for /d %%d in (%TESTDIR%*) do (
for /d %%d in (mpir-tests\*) do (
for %%f in (%%d\*.vcxproj) do (
%msbdir%\msbuild.exe /property:SolutionDir=..\..\ /property:OutDir=..\..\%plat%\%conf%\ /p:Platform=%plat% /p:Configuration=%conf% %%f
)