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

Use consistent line-folding in CI YAML shell sections #792

Merged
merged 1 commit into from
Jan 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,15 @@ build_script:
} else {
$LASTEXITCODE = 0
}
- ps: >-
- 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."
}

$diff = git diff --ignore-all-space --exit-code 2>&1

$diff | % { if ($_ -is [string]) { $_ } else { [string]$_ } } | echo

if ($LASTEXITCODE -ne 0) {
throw "New code was generated during build that's not been committed."
}
Expand Down