do not fail build on pjvalidate failure
This commit is contained in:
parent
f54b08ea53
commit
dd5c0bb423
2 changed files with 8 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue