do not fail build on pjvalidate failure

This commit is contained in:
Bryan 2015-12-14 15:15:02 -08:00
parent f54b08ea53
commit dd5c0bb423
2 changed files with 8 additions and 4 deletions

View file

@ -149,10 +149,11 @@ Download it from https://www.cmake.org
# Run Validation for Project.json dependencies
dotnet publish $RepoRoot\tools\MultiProjectValidator -o $Stage2Dir\..\tools
& "$Stage2Dir\..\tools\pjvalidate" "$RepoRoot\src"
if (!$?) {
Write-Host "Project Validation Failed"
Exit 1
}
# TODO For release builds, this should be uncommented and fail.
# if (!$?) {
# Write-Host "Project Validation Failed"
# Exit 1
# }
} finally {
$env:PATH = $StartPath

View file

@ -121,4 +121,7 @@ DOTNET_HOME=$STAGE2_DIR DOTNET_TOOLS=$STAGE2_DIR $DIR/test/e2e-test.sh
# Run Validation for Project.json dependencies
dotnet publish "$REPOROOT/tools/MultiProjectValidator" -o "$OUTPUT_DIR/../tools"
#TODO for release builds this should fail
set +e
"$OUTPUT_DIR/tools/pjvalidate" "$REPOROOT/src"
set -e