Permalink
Browse files

travis: make travis_before_script fail on all errors

  • Loading branch information...
1 parent 6986a73 commit c786b30d121eaddbf26b828306d19ae9ea12abfe @rombert rombert committed Oct 29, 2013
Showing with 6 additions and 6 deletions.
  1. +6 −6 scripts/travis_before_script.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -x
# -----------------------------------------------------------------------------
# MantisBT Travis-CI before script
# -----------------------------------------------------------------------------
@@ -34,7 +34,7 @@ case $DB in
DB_CMD='mysql -e'
DB_CMD_SCHEMA="$MANTIS_DB_NAME"
- $DB_CMD "$SQL_CREATE_DB" || exit 1
+ $DB_CMD "$SQL_CREATE_DB"
;;
pgsql)
@@ -43,8 +43,8 @@ case $DB in
DB_CMD="psql -U $DB_USER -c"
DB_CMD_SCHEMA="-d $MANTIS_DB_NAME"
- $DB_CMD "$SQL_CREATE_DB" || exit 1
- $DB_CMD "ALTER USER $DB_USER SET bytea_output = 'escape';" || exit 1
+ $DB_CMD "$SQL_CREATE_DB"
+ $DB_CMD "ALTER USER $DB_USER SET bytea_output = 'escape';"
;;
esac
@@ -114,14 +114,14 @@ do
done
# trigger installation
-curl --data "${query_string:1}" http://$HOSTNAME/admin/install.php || exit 1
+curl --data "${query_string:1}" http://$HOSTNAME/admin/install.php
# -----------------------------------------------------------------------------
step "Post-installation steps"
echo "Creating project"
-$DB_CMD "$SQL_CREATE_PROJECT" $DB_CMD_SCHEMA || exit 1
+$DB_CMD "$SQL_CREATE_PROJECT" $DB_CMD_SCHEMA
# enable SOAP tests

0 comments on commit c786b30

Please sign in to comment.