forked from zeux/pugixml
-
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.
To reduce build time impact we just do a quick smoke test (configure & build).
- Loading branch information
Showing
2 changed files
with
65 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
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,57 @@ | ||
$failed = $FALSE | ||
|
||
$vs = $args[0] | ||
$vsy = $args[1] | ||
|
||
$target = "cmake_vs${vs}_${vsy}" | ||
|
||
Add-AppveyorTest $target -Outcome Running | ||
|
||
mkdir $target | ||
pushd $target | ||
|
||
try | ||
{ | ||
Write-Output "# Setting up CMake VS$vs" | ||
& cmake .. -G "Visual Studio $vs $vsy" | Tee-Object -Variable cmakeOutput | ||
|
||
$sw = [Diagnostics.Stopwatch]::StartNew() | ||
|
||
if ($?) | ||
{ | ||
Write-Output "# Building" | ||
|
||
& cmake --build . | Tee-Object -Variable cmakeOutput | ||
|
||
if ($?) | ||
{ | ||
Write-Output "# Passed" | ||
|
||
Update-AppveyorTest $target -Outcome Passed -StdOut ($cmakeOutput | out-string) -Duration $sw.ElapsedMilliseconds | ||
} | ||
else | ||
{ | ||
Write-Output "# Failed to build" | ||
|
||
Update-AppveyorTest $target -Outcome Failed -StdOut ($cmakeOutput | out-string) -ErrorMessage "Building failed" | ||
|
||
$failed = $TRUE | ||
} | ||
} | ||
else | ||
{ | ||
Write-Output "# Failed to configure" | ||
|
||
Update-AppveyorTest $target -Outcome Failed -StdOut ($cmakeOutput | out-string) -ErrorMessage "Configuration failed" | ||
|
||
$failed = $TRUE | ||
} | ||
} | ||
finally | ||
{ | ||
popd | ||
} | ||
|
||
if ($failed) { throw "One or more build steps failed" } | ||
|
||
Write-Output "# End" |