Add redis config file for gitlab ci tests
This commit is contained in:
parent
96d3dfdbb4
commit
cb046dbde2
@ -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
|
||||||
@ -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
|
curl -Lo /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar
|
||||||
chmod +x /usr/local/bin/phpunit
|
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
|
# 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-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
|
docker-php-ext-install gd
|
||||||
|
15
tests/redis.toml
Normal file
15
tests/redis.toml
Normal 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
|
Loading…
Reference in New Issue
Block a user