Stop as soon as a build fails
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 4 Jan 2017 08:56:57 +0000 (09:56 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 4 Jan 2017 08:56:57 +0000 (09:56 +0100)
id-deb-build/docker-build.sh

index 8ae0d73..aa39fb4 100755 (executable)
@@ -227,6 +227,7 @@ if test "${CENTOS_DIST}"; then
                echo Done
        else
                echo "Fail. Inspect build/centos/$dist/log"
+               exit 1
        fi
        cd ../../..
     done
@@ -245,6 +246,7 @@ if test "${DEBIAN_DIST}"; then
                echo Done
        else
                echo "Fail. Inspect build/debian/$dist/log"
+               exit 1
        fi
        cd ../../..
     done
@@ -263,6 +265,7 @@ if test "${UBUNTU_DIST}"; then
                echo Done
        else
                echo "Fail. Inspect build/ubuntu/$dist/log"
+               exit 1
        fi
        cd ../../..
     done