File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -59,23 +59,25 @@ install:
59
59
- sh : export PATH="$HOME/.dotnet:$PATH"
60
60
before_build :
61
61
- dotnet --info
62
- # Touch T4 templates to force code generation & validation
63
- - touch MoreLinq/*.g.tt
64
- build_script :
65
62
- pwsh : |
66
63
grep --extended-regexp '^[[:space:]]*using[[:space:]]+System\.Linq;' (dir -Recurse -File -Filter *Test.cs MoreLinq.Test)
67
64
if ($LASTEXITCODE -eq 0) {
68
65
throw 'Unit tests should not import System.Linq'
69
66
} else {
70
67
$LASTEXITCODE = 0
71
68
}
69
+ # Touch T4 templates to force code generation & validation
70
+ - touch MoreLinq/*.g.tt
71
+ build_script :
72
72
- ps : |
73
73
$id = $env:APPVEYOR_REPO_COMMIT_TIMESTAMP -replace '([-:]|\.0+Z)', ''
74
74
$id = $id.Substring(0, 13)
75
75
if ($isWindows) { cmd /c call pack.cmd ci-$id } else { ./pack.sh ci-$id }
76
76
if ($LASTEXITCODE -ne 0) {
77
77
throw "Building/Packing failed with an exit code of $LASTEXITCODE."
78
78
}
79
+ after_build :
80
+ - ps : |
79
81
$diff = git diff --ignore-all-space --exit-code 2>&1
80
82
$diff | % { if ($_ -is [string]) { $_ } else { [string]$_ } } | echo
81
83
if ($LASTEXITCODE -ne 0) {
You can’t perform that action at this time.
0 commit comments