Commit 4540d01f authored by Ines WALLON's avatar Ines WALLON
Browse files

feat: add merge request in gitlab-ci

parent d16aa511
......@@ -6,6 +6,29 @@
rules:
- if: $CI_MERGE_REQUEST_ID
'Build Drupal':
stage: Init
image: libert/drupal-php-dev:7.4
tags:
- spud
script:
- echo $COMPOSER_AUTH > /usr/local/composer/auth.json
- cp config/.init_files/exemple.docker-compose.yml docker-compose.yml
- cp config/.init_files/exemple.env .env
- sed -i '/COMPOSER_AUTH/d' .env
- mkdir -p web/sites/default/
- cp config/drupal/example.settings.local.php config/drupal/settings.local.php
- cp config/drupal/example.settings.php web/sites/default/settings.php
- composer install --dev
- composer update
artifacts:
paths:
- config/
- vendor/
- web/
- .env
- docker-compose.yml
PHPCS:
stage: Code quality PHP 7.4
extends: .check_merge_request
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment