aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2018-11-29 11:05:30 -0500
committerAndrew Kelley <andrew@ziglang.org>2018-11-29 11:05:56 -0500
commitbbdc12891bdc3a7b43a44d40b8f3d0ac8f6bb2c0 (patch)
treef28c07e618f8ce3b311625aac9e1e128f1636550 /ci
parent53766e7a3a5c7141a64e21c30540f9ed571cdfdd (diff)
downloadzig-bbdc12891bdc3a7b43a44d40b8f3d0ac8f6bb2c0.tar.gz
zig-bbdc12891bdc3a7b43a44d40b8f3d0ac8f6bb2c0.zip
ci: workaround azure quirk with set -x
Diffstat (limited to 'ci')
-rwxr-xr-xci/azure/linux_script3
-rwxr-xr-xci/azure/macos_script3
2 files changed, 6 insertions, 0 deletions
diff --git a/ci/azure/linux_script b/ci/azure/linux_script
index 6538c2145a..0298644bf1 100755
--- a/ci/azure/linux_script
+++ b/ci/azure/linux_script
@@ -34,6 +34,9 @@ if [ "${BUILD_REASON}" != "PullRequest" ]; then
SHASUM=$(sha256sum $ARTIFACTSDIR/$TARBALL | cut '-d ' -f1)
BYTESIZE=$(wc -c < $ARTIFACTSDIR/$TARBALL)
+ # `set -x` causes these variables to be mangled.
+ # See https://developercommunity.visualstudio.com/content/problem/375679/pipeline-variable-incorrectly-inserts-single-quote.html
+ set +x
echo "##vso[task.setvariable variable=tarball;isOutput=true]$TARBALL"
echo "##vso[task.setvariable variable=shasum;isOutput=true]$SHASUM"
echo "##vso[task.setvariable variable=bytesize;isOutput=true]$BYTESIZE"
diff --git a/ci/azure/macos_script b/ci/azure/macos_script
index 239c354263..da2d9351dd 100755
--- a/ci/azure/macos_script
+++ b/ci/azure/macos_script
@@ -98,6 +98,9 @@ if [ "${BUILD_REASON}" != "PullRequest" ]; then
SHASUM=$(shasum -a 256 $TARBALL | cut '-d ' -f1)
BYTESIZE=$(wc -c < $TARBALL)
+ # `set -x` causes these variables to be mangled.
+ # See https://developercommunity.visualstudio.com/content/problem/375679/pipeline-variable-incorrectly-inserts-single-quote.html
+ set +x
echo "##vso[task.setvariable variable=tarball;isOutput=true]$TARBALL"
echo "##vso[task.setvariable variable=shasum;isOutput=true]$SHASUM"
echo "##vso[task.setvariable variable=bytesize;isOutput=true]$BYTESIZE"