add extensions to postgres

This commit is contained in:
Julien Fastré 2021-04-20 21:36:25 +02:00
parent 7719447044
commit 82daf1e3af

View File

@ -7,16 +7,14 @@ cache:
- tests/app/vendor/
before_script:
# Install & enable Xdebug for code coverage reports
# - pecl install xdebug
# - docker-php-ext-enable xdebug
# add extensions to postgres
- PGPASSWORD=$POSTGRES_PASSWORD psql -U $POSTGRES_USER -h db -c "CREATE EXTENSION IF NOT EXISTS unaccent; CREATE EXTENSION IF NOT EXISTS pg_trgm;"
# Install and run Composer
- curl -sS https://getcomposer.org/installer | php
- php composer.phar install
- php tests/app/bin/console doctrine:migrations:migrate -n
- php tests/app/bin/console doctrine:fixtures:load -n
# Bring in any services we need http://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-a-service
# See http://docs.gitlab.com/ee/ci/services/README.html for examples.
services: