From 2fbbc89018eb92e5b7f0d1e258ccb5c38a7ee2c3 Mon Sep 17 00:00:00 2001
From: Bertrand Gauthier <bertrand.gauthier@unicaen.fr>
Date: Wed, 30 May 2018 16:25:48 +0200
Subject: [PATCH] Ajout .gitlab-ci.yml

---
 .gitlab-ci.yml | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..08056c7
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,22 @@
+stages:
+- tests
+- publish
+
+cache:
+  key: ${CI_COMMIT_REF_SLUG}
+  paths:
+  - vendor/
+
+unit-tests:
+  stage: tests
+  script:
+    - composer install --no-interaction --no-suggest --no-progress
+    - php vendor/bin/phpunit --coverage-text --colors=never > coverage.txt
+  artifacts:
+    paths:
+      - coverage.txt
+
+update-satis:
+  stage: publish
+  script:
+    - update-satis
-- 
GitLab