Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate build pre-/post-validation into relevant CI sections #952

Merged
merged 11 commits into from
Jan 29, 2023
8 changes: 5 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,23 +59,25 @@ install:
- sh: export PATH="$HOME/.dotnet:$PATH"
before_build:
- dotnet --info
# Touch T4 templates to force code generation & validation
- touch MoreLinq/*.g.tt
build_script:
- pwsh: |
grep --extended-regexp '^[[:space:]]*using[[:space:]]+System\.Linq;' (dir -Recurse -File -Filter *Test.cs MoreLinq.Test)
if ($LASTEXITCODE -eq 0) {
throw 'Unit tests should not import System.Linq'
} else {
$LASTEXITCODE = 0
}
# Touch T4 templates to force code generation & validation
- touch MoreLinq/*.g.tt
build_script:
- ps: |
$id = $env:APPVEYOR_REPO_COMMIT_TIMESTAMP -replace '([-:]|\.0+Z)', ''
$id = $id.Substring(0, 13)
if ($isWindows) { cmd /c call pack.cmd ci-$id } else { ./pack.sh ci-$id }
if ($LASTEXITCODE -ne 0) {
throw "Building/Packing failed with an exit code of $LASTEXITCODE."
}
after_build:
- ps: |
$diff = git diff --ignore-all-space --exit-code 2>&1
$diff | % { if ($_ -is [string]) { $_ } else { [string]$_ } } | echo
if ($LASTEXITCODE -ne 0) {
Expand Down