Add redis config file for gitlab ci tests

This commit is contained in:
Timothy Warren 2016-07-25 11:58:43 -04:00
parent 96d3dfdbb4
commit cb046dbde2
2 changed files with 22 additions and 0 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
@ -13,6 +16,10 @@ apt-get install git unzip libfreetype6 libjpeg62-turbo libmcrypt4 libpng12-0 lib
curl -Lo /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar
chmod +x /usr/local/bin/phpunit
# Move redis test config file into place
mv "$DIR/test/redis.toml" "$DIR/app/config/redis.toml"
# Install gd
docker-php-ext-configure gd --enable-gd-native-ttf --with-jpeg-dir=/usr/lib/x86_64-linux-gnu --with-png-dir=/usr/lib/x86_64-linux-gnu --with-freetype-dir=/usr/lib/x86_64-linux-gnu
docker-php-ext-install gd

15
tests/redis.toml Normal file
View File

@ -0,0 +1,15 @@
################################################################################
# Redis Cache Configuration #
################################################################################
# Host or socket to connect to
host = "redis"
# Connection port
#port = 6379
# Connection password
#password = ""
# Database number
database = 13