diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2017-06-18 22:34:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-18 22:34:08 -0700 |
commit | 867bd2583bf0abc374a096a8c4f41b9b1f38d3a4 (patch) | |
tree | 09b74d392342edb181af8a100b562d91935ffb14 /tests | |
parent | ade869ea58a2c43cc6c9981a9e6d97127a19cd92 (diff) | |
parent | 9357837d2e4331a29bdab77120d5baaaec05de50 (diff) |
Merge pull request #150 from zeux/nuget
Add VS2017 to AppVeyor test run
Diffstat (limited to 'tests')
-rw-r--r-- | tests/autotest-appveyor.ps1 | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/autotest-appveyor.ps1 b/tests/autotest-appveyor.ps1 index 0b8717c..e3805c7 100644 --- a/tests/autotest-appveyor.ps1 +++ b/tests/autotest-appveyor.ps1 @@ -12,13 +12,22 @@ function Invoke-CmdScript($scriptName) $sources = @("src/pugixml.cpp") + (Get-ChildItem -Path "tests/*.cpp" -Exclude "fuzz_*.cpp") $failed = $FALSE -foreach ($vs in 9,10,11,12,14) +foreach ($vs in $args) { foreach ($arch in "x86","x64") { Write-Output "# Setting up VS$vs $arch" - Invoke-CmdScript "C:\Program Files (x86)\Microsoft Visual Studio $vs.0\VC\vcvarsall.bat" $arch + if ($vs -eq 15) + { + $vsdevcmdarch = if ($arch -eq "x64") { "amd64" } else { "x86" } + Invoke-CmdScript "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat" "-arch=$vsdevcmdarch" + } + else + { + Invoke-CmdScript "C:\Program Files (x86)\Microsoft Visual Studio $vs.0\VC\vcvarsall.bat" $arch + } + if (! $?) { throw "Error setting up VS$vs $arch" } foreach ($defines in "standard", "PUGIXML_WCHAR_MODE", "PUGIXML_COMPACT") |