Determine current directory so we can move files in the gitlab ci test

This commit is contained in:
Timothy Warren 2016-07-19 11:04:39 -04:00
parent 3d296be011
commit 06ba85ca6a

View File

@ -3,6 +3,9 @@
# We need to install dependencies only for Docker # We need to install dependencies only for Docker
[[ ! -e /.dockerenv ]] && [[ ! -e /.dockerinit ]] && exit 0 [[ ! -e /.dockerenv ]] && [[ ! -e /.dockerinit ]] && exit 0
# Where am I?
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
set -xe set -xe
# Install git (the php image doesn't have it) which is required by composer # 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 chmod +x /usr/local/bin/phpunit
# Set up build config # 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 # Install mysql driver
# Here you can install any other extension that you need # Here you can install any other extension that you need