From bf8e8b6a68d0efb0a2ae88a42d4a2b092c3e8ab9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= <guillaume.perreal@irstea.fr>
Date: Fri, 24 Jan 2020 10:52:07 +0100
Subject: [PATCH] =?UTF-8?q?Utilise=20ci-config=20pour=20ajouter=20de=20l'i?=
 =?UTF-8?q?nt=C3=A9gration=20continue.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .gitignore     | 1 +
 .gitlab-ci.yml | 7 +++++++
 composer.json  | 6 ++++++
 3 files changed, 14 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitignore b/.gitignore
index 57872d0..4fbb073 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /vendor/
+/composer.lock
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..973f5de
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,7 @@
+include:
+  - project: pole-is/tools/ci-config
+    ref: "2.1.0"
+    file: /php-multiversions-ci.yml
+  - project: pole-is/tools/ci-config
+    ref: "2.1.0"
+    file: /packagist-ci.yml
diff --git a/composer.json b/composer.json
index e398219..76eb4f0 100644
--- a/composer.json
+++ b/composer.json
@@ -22,5 +22,11 @@
     "exclude": [
       ".?*"
     ]
+  },
+  "scripts": {
+    "test": [
+      "vendor/bin/phpmd . ansi ./strict.xml",
+      "vendor/bin/phpmd . ansi ./loose.xml"
+    ]
   }
 }
-- 
GitLab