From 06ba85ca6a682e73c894b4c570bba1feaf35d0be Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Tue, 19 Jul 2016 11:04:39 -0400 Subject: [PATCH] Determine current directory so we can move files in the gitlab ci test --- build/docker_install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/docker_install.sh b/build/docker_install.sh index 4bdc7c3..87a5a97 100644 --- a/build/docker_install.sh +++ b/build/docker_install.sh @@ -3,6 +3,9 @@ # We need to install dependencies only for Docker [[ ! -e /.dockerenv ]] && [[ ! -e /.dockerinit ]] && exit 0 +# Where am I? +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + set -xe # Install git (the php image doesn't have it) which is required by composer @@ -14,7 +17,7 @@ curl -Lo /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar chmod +x /usr/local/bin/phpunit # Set up build config -mv ../tests/settings.json.dist ../tests/settings.json +mv "$DIR/../tests/settings.json.dist" "$DIR/../tests/settings.json" # Install mysql driver # Here you can install any other extension that you need