Skip to content

Commit 3970378

Browse files
tarrowaddshore
authored andcommitted
Use set -e to make the CI fail if the build fails
1 parent da1b115 commit 3970378

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

wdqs-frontend/latest/.travis/build-deploy.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22
#Oneline for full directory name see: https://stackoverflow.com/questions/59895/getting-the-source-directory-of-a-bash-script-from-within
33
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4+
set -e
45
docker build "$DIR/../" -t wikibase/wdqs-frontend:latest
56

67
if [ "$SHOULD_DOCKER_PUSH" = true ]; then

wdqs-proxy/latest/.travis/build-deploy.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22
#Oneline for full directory name see: https://stackoverflow.com/questions/59895/getting-the-source-directory-of-a-bash-script-from-within
33
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4+
set -e
45
docker build "$DIR/../" -t wikibase/wdqs-proxy:latest
56

67
if [ "$SHOULD_DOCKER_PUSH" = true ]; then

wdqs/0.2.5/.travis/build-deploy.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22
#Oneline for full directory name see: https://stackoverflow.com/questions/59895/getting-the-source-directory-of-a-bash-script-from-within
33
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4+
set -e
45
docker build "$DIR/../" -t wikibase/wdqs:0.2.5
56

67
if [ "$SHOULD_DOCKER_PUSH" = true ]; then

wdqs/0.3.0/.travis/build-deploy.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22
#Oneline for full directory name see: https://stackoverflow.com/questions/59895/getting-the-source-directory-of-a-bash-script-from-within
33
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4+
set -e
45
docker build "$DIR/../" -t wikibase/wdqs:0.3.0 -t wikibase/wdqs:latest
56

67
if [ "$SHOULD_DOCKER_PUSH" = true ]; then

wikibase/1.29/.travis/build-deploy.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22
#Oneline for full directory name see: https://stackoverflow.com/questions/59895/getting-the-source-directory-of-a-bash-script-from-within
33
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4+
set -e
45
docker build "$DIR/../" -t wikibase/wikibase:1.29 -t wikibase/wikibase:legacy
56

67
if [ "$SHOULD_DOCKER_PUSH" = true ]; then

wikibase/1.30/.travis/build-deploy.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22
#Oneline for full directory name see: https://stackoverflow.com/questions/59895/getting-the-source-directory-of-a-bash-script-from-within
33
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4+
set -e
45
docker build "$DIR/../base" -t wikibase/wikibase:1.30 -t wikibase/wikibase:1.30-base -t wikibase/wikibase:latest -t wikibase/wikibase:latest-base
56
docker build "$DIR/../bundle" -t wikibase/wikibase:1.30-bundle -t wikibase/wikibase:latest-bundle
67

0 commit comments

Comments
 (0)