Skip to content

Commit

Permalink
Try of MSVC build in the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Jérôme Richard committed Sep 9, 2020
1 parent 2305fa8 commit 8822c75
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ environment:
matrix:
- TOOLCHAIN: "msys2"
- TOOLCHAIN: "cygwin"
- TOOLCHAIN: "msvc"

branches:
only:
Expand All @@ -26,13 +27,19 @@ build_script:
C:\msys64\usr\bin\bash -l -c "cd /c/projects/readstat && ./configure"
C:\msys64\usr\bin\bash -l -c "cd /c/projects/readstat && make"
}
else
elseif ($env:TOOLCHAIN -eq "cygwin")
{
c:\cygwin64\setup-x86_64.exe -qnNdO -s http://cygwin.mirror.constant.com -l C:/cygwin64/var/cache/setup -P libiconv-devel -P ragel -P zlib-devel
C:\cygwin64\setup-x86_64.exe -qnNdO -s http://cygwin.mirror.constant.com -l C:/cygwin64/var/cache/setup -P libiconv-devel -P ragel -P zlib-devel
C:\cygwin64\bin\sh -lc "cd /cygdrive/c/projects/readstat && ./autogen.sh"
C:\cygwin64\bin\sh -lc "cd /cygdrive/c/projects/readstat && ./configure"
C:\cygwin64\bin\sh -lc "cd /cygdrive/c/projects/readstat && make"
}
else
{
call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
msbuild C:/projects/readstat/VS17/ReadStat.sln
}
test_script:
- ps: |
Expand All @@ -41,18 +48,26 @@ test_script:
$env:MSYSTEM="MINGW64"
C:\msys64\usr\bin\bash -l -c "cd /c/projects/readstat && make check"
}
else
elseif ($env:TOOLCHAIN -eq "cygwin")
{
C:\cygwin64\bin\sh -lc "cd /cygdrive/c/projects/readstat && make check"
}
else
{
# TODO
}
on_success:
- ps: |
if ($env:TOOLCHAIN -eq "msys2")
{
C:\msys64\usr\bin\bash -l -c "cd /c/projects/readstat && cat ./test-suite.log"
}
else
elseif ($env:TOOLCHAIN -eq "cygwin")
{
C:\cygwin64\bin\sh -lc "cd /cygdrive/c/projects/readstat && cat ./test-suite.log"
}
else
{
# TODO
}

0 comments on commit 8822c75

Please sign in to comment.