Skip to content

Commit

Permalink
Use consistent line-folding in CI YAML shell sections
Browse files Browse the repository at this point in the history
  • Loading branch information
atifaziz committed Jan 13, 2021
1 parent 7bdbe7f commit 1138ed5
Showing 1 changed file with 1 addition and 7 deletions.
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

0 comments on commit 1138ed5

Please sign in to comment.