gitlab-ci: image build should fail on failed commands
authorPekka Paalanen <pekka.paalanen@collabora.com>
Thu, 21 Nov 2019 13:03:03 +0000 (15:03 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.com>
Thu, 12 Dec 2019 12:08:33 +0000 (14:08 +0200)
Ensure that no command in the script fails silently. If any command fails, the
image is likely broken.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
.gitlab-ci/debian-install.sh

index 80ba6e3..34f3b26 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-set -o xtrace
+set -o xtrace -o errexit
 
 echo 'deb http://deb.debian.org/debian buster-backports main' >> /etc/apt/sources.list
 apt-get update