From b6342b5b76bd2e416f10eaa09ae78fabf23cf488 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Mon, 10 Sep 2018 17:19:03 +0200 Subject: [PATCH] Trace shell scripts --- build-task.sh | 3 +++ decision-task/vendor.sh | 4 ++++ docker-image-build-task.sh | 3 +++ docker/build.sh | 3 +++ run-task.sh | 3 +++ 5 files changed, 16 insertions(+) diff --git a/build-task.sh b/build-task.sh index e262bc2c7a9..833a4a74739 100755 --- a/build-task.sh +++ b/build-task.sh @@ -1,5 +1,8 @@ #!/bin/sh +set -e +set -x + curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain none -y export PATH="$HOME/.cargo/bin:$PATH" diff --git a/decision-task/vendor.sh b/decision-task/vendor.sh index aaf2bf85254..03e2392c62f 100755 --- a/decision-task/vendor.sh +++ b/decision-task/vendor.sh @@ -1,3 +1,7 @@ #!/bin/sh + +set -e +set -x + cd $(dirname $0) python2 -m pip install -r requirements.txt --target vendored diff --git a/docker-image-build-task.sh b/docker-image-build-task.sh index 6f927521804..32da80ae26f 100755 --- a/docker-image-build-task.sh +++ b/docker-image-build-task.sh @@ -1,5 +1,8 @@ #!/bin/sh +set -e +set -x + image="$1" apt-get update -q diff --git a/docker/build.sh b/docker/build.sh index 032a836d18e..cc9f088aee6 100755 --- a/docker/build.sh +++ b/docker/build.sh @@ -1,5 +1,8 @@ #!/bin/sh +set -e +set -x + image="$1" cd $(dirname $0) docker build . -f "$image/Dockerfile" -t "$image" diff --git a/run-task.sh b/run-task.sh index b8bdbccc509..ee4e7a999c4 100755 --- a/run-task.sh +++ b/run-task.sh @@ -1,5 +1,8 @@ #!/bin/sh +set -e +set -x + ./curl-artifact.sh $BUILD_TASK_ID public/executable.gz -o executable.gz gunzip executable.gz chmod +x executable