From 0d63c2f4a8c6fdb4838187b4f33ac053d0e04c32 Mon Sep 17 00:00:00 2001
From: BERNARD Hugo <hugo.bernard9@etu.univ-lorraine.fr>
Date: Wed, 3 Nov 2021 15:26:59 +0000
Subject: [PATCH] Update .gitlab-ci.yml file

---
 .gitlab-ci.yml | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 48dce0a..6111beb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -25,11 +25,22 @@ build:php:
     - curl -sS https://getcomposer.org/installer | php
     - php composer.phar install
 
+  # 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:
+    - mysql:5.7
+
+  # Set any variables we need
+  variables:
+  # Configure mysql environment variables (https://hub.docker.com/r/_/mysql/)
+    MYSQL_DATABASE: lehangarlocal
+
+
   # Run our tests
   # If Xdebug was installed you can generate a coverage report and see code coverage metrics.
   script:
-    ./vendor/bin/phplint
-    ./vendor/bin/doctrine orm:validate-schema
+    - ./vendor/bin/phplint
+    - ./vendor/bin/doctrine orm:validate-schema
 
 build:node:
   image: node:latest
@@ -44,5 +55,5 @@ build:node:
     - npm ci
 
   script:
-    npx stylelint "**/*.css"
-    npx stylelint "**/*.scss"
+    - npx stylelint "**/*.css"
+    - npx stylelint "**/*.scss"
-- 
GitLab