Add Project Validation to build scripts. Fail on a failed analysis.
This commit is contained in:
parent
6ff7404a48
commit
d502f3d57e
2 changed files with 12 additions and 0 deletions
|
@ -146,6 +146,14 @@ Download it from https://www.cmake.org
|
|||
Exit 1
|
||||
}
|
||||
|
||||
# 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
|
||||
}
|
||||
|
||||
} finally {
|
||||
$env:PATH = $StartPath
|
||||
$env:DOTNET_HOME = $StartDotNetHome
|
||||
|
|
|
@ -118,3 +118,7 @@ DOTNET_HOME=$STAGE2_DIR DOTNET_TOOLS=$STAGE2_DIR $DIR/test/smoke-test.sh
|
|||
# E2E test on the output
|
||||
header "Testing stage2 End to End ..."
|
||||
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"
|
||||
"$OUTPUT_DIR/tools/pjvalidate" "$REPOROOT/src"
|
||||
|
|
Loading…
Add table
Reference in a new issue