diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 225f94544..295eb3e0e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,12 +5,13 @@ image: registry.gitlab.com/chill-projet/chill-app/php-base-image:7.4 cache: paths: - tests/app/vendor/ - - /tmp/composer-cache + - .composer before_script: # 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 + - mkdir -p $COMPOSER_HOME - curl -sS https://getcomposer.org/installer | php - php -d memory_limit=2G composer.phar install - php tests/app/bin/console doctrine:migrations:migrate -n @@ -38,7 +39,7 @@ variables: # change vendor dir to make the app install into tests/apps COMPOSER_VENDOR_DIR: tests/app/vendor # cache some composer data - COMPOSER_HOME: /tmp/composer-cache + COMPOSER_HOME: .composer # Run our tests