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
1 changed files with 4 additions and 1 deletions

View File

@ -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