From 11ef3154bbd7073a3083e05a79f4bf022ccd6859 Mon Sep 17 00:00:00 2001 From: Lin Jen-Shin Date: Thu, 13 Apr 2017 15:48:25 +0800 Subject: Always use . and add more comments to prepare_build.sh --- scripts/prepare_build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/prepare_build.sh b/scripts/prepare_build.sh index b176830ffb4..8c5ffe92960 100755 --- a/scripts/prepare_build.sh +++ b/scripts/prepare_build.sh @@ -3,9 +3,14 @@ . scripts/utils.sh export SETUP_DB=${SETUP_DB:-true} -export GITLAB_DATABASE=$(echo $CI_JOB_NAME | cut -f2 -d' ') export USE_BUNDLE_INSTALL=${USE_BUNDLE_INSTALL:-true} +# Determine the database by looking at the job name. +# For example, we'll get pg if the job is `rspec pg 19 20` +export GITLAB_DATABASE=$(echo $CI_JOB_NAME | cut -f2 -d' ') + +# This would make the default database postgresql, and we could also use +# pg to mean postgresql. if [ "$GITLAB_DATABASE" != 'mysql' ]; then export GITLAB_DATABASE='postgresql' fi -- cgit v1.2.3