From f72e553dc5fe4934bdcc2651a40c1c928181111c Mon Sep 17 00:00:00 2001
From: Lucas Nussbaum <lucas.nussbaum@loria.fr>
Date: Wed, 10 Oct 2018 12:32:46 +0200
Subject: [PATCH] Add more CI on reference-repository

---
 .gitlab-ci.yml | 22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bdbec858f0c..0831547be12 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,10 +1,28 @@
+stages:
+- validate
+- generate
+
+validate-data:
+   stage: validate
+   tags:
+    - docker
+   image: debian:stretch
+   script:
+    - apt-get update && apt-get -y install ruby rake ruby-hashdiff
+    - gem install hash_validator
+    - cd generators/input-validators/
+    - ruby yaml-input-schema-validator.rb
+    - ruby yaml-input-find-duplicates.rb
+
 generate-reference-api:
+   stage: generate
    tags:
     - docker
    image: debian:stretch
    script:
     - apt-get update && apt-get -y install ruby rake ruby-hashdiff git
     - gem install hash_validator
+    - export TZ=Europe/Paris
     - rake reference-api
-    - git status # TODO complain if we have uncommitted changes?
-    - git diff
+    - git status
+    - git diff --exit-code
-- 
GitLab