From 82daf1e3af8b8d834798b1261f665d3a7ba6450d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 20 Apr 2021 21:36:25 +0200 Subject: [PATCH] add extensions to postgres --- .gitlab-ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 697d83bc5..94601773d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: