Skip to content

Commit f6bc02a

Browse files
authored
Separate build pre-/post-validation into relevant CI sections
1 parent 47747ef commit f6bc02a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

appveyor.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,23 +59,25 @@ install:
5959
- sh: export PATH="$HOME/.dotnet:$PATH"
6060
before_build:
6161
- dotnet --info
62-
# Touch T4 templates to force code generation & validation
63-
- touch MoreLinq/*.g.tt
64-
build_script:
6562
- pwsh: |
6663
grep --extended-regexp '^[[:space:]]*using[[:space:]]+System\.Linq;' (dir -Recurse -File -Filter *Test.cs MoreLinq.Test)
6764
if ($LASTEXITCODE -eq 0) {
6865
throw 'Unit tests should not import System.Linq'
6966
} else {
7067
$LASTEXITCODE = 0
7168
}
69+
# Touch T4 templates to force code generation & validation
70+
- touch MoreLinq/*.g.tt
71+
build_script:
7272
- ps: |
7373
$id = $env:APPVEYOR_REPO_COMMIT_TIMESTAMP -replace '([-:]|\.0+Z)', ''
7474
$id = $id.Substring(0, 13)
7575
if ($isWindows) { cmd /c call pack.cmd ci-$id } else { ./pack.sh ci-$id }
7676
if ($LASTEXITCODE -ne 0) {
7777
throw "Building/Packing failed with an exit code of $LASTEXITCODE."
7878
}
79+
after_build:
80+
- ps: |
7981
$diff = git diff --ignore-all-space --exit-code 2>&1
8082
$diff | % { if ($_ -is [string]) { $_ } else { [string]$_ } } | echo
8183
if ($LASTEXITCODE -ne 0) {

0 commit comments

Comments
 (0)