From 457a8d3cf3ff57e9ad5263293e56057e943cf7a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sun, 30 Jan 2022 21:36:18 +0100 Subject: [PATCH] make build error if script errors --- .ci/ci_build.sh | 1 + .ci/configure_git.sh | 1 + .ci/get_build_repo_from_origin.sh | 1 + 3 files changed, 3 insertions(+) diff --git a/.ci/ci_build.sh b/.ci/ci_build.sh index 9805d32..c7d5109 100755 --- a/.ci/ci_build.sh +++ b/.ci/ci_build.sh @@ -1,3 +1,4 @@ +set -e export COMMIT_MSG=$(python3 print_deploy_message.py) make ci-build cd build/LatexPackagesBuild diff --git a/.ci/configure_git.sh b/.ci/configure_git.sh index 3d3b4fd..3789bb6 100755 --- a/.ci/configure_git.sh +++ b/.ci/configure_git.sh @@ -1,3 +1,4 @@ +set -e eval $(ssh-agent -s) echo "$GITLAB_DEPLOY_KEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null diff --git a/.ci/get_build_repo_from_origin.sh b/.ci/get_build_repo_from_origin.sh index 2fe26aa..c53683b 100755 --- a/.ci/get_build_repo_from_origin.sh +++ b/.ci/get_build_repo_from_origin.sh @@ -1,4 +1,5 @@ # ! /bin/sh +set -e ssh git@gitlab.com git clone git@gitlab.com:latexci/packages/LatexPackagesBuild.git build/LatexPackagesBuild cd build/LatexPackagesBuild