From 5c06a43f891f694abadf813f9ae7d850ee086cc5 Mon Sep 17 00:00:00 2001
From: laurentheirendt <laurent.heirendt@uni.lu>
Date: Sat, 19 Jan 2019 13:54:51 +0100
Subject: [PATCH] replacing content of gitlab yml (1)

---
 .gitlab-ci.yml | 38 +++++++++++++++++++++++++-------------
 1 file changed, 25 insertions(+), 13 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9f03cb1a..1523d6c1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,7 +1,6 @@
-cache:
-    paths:
-    - bower_components/
-    - node_modules/
+stages:
+  - test
+  - deploy
 
 before_script:
     - ruby -v
@@ -26,13 +25,26 @@ before_script:
     - gem install jekyll -v '3.3.0'
     - jekyll --version
 
-pages:
-    stage: deploy
-    script:
-    - grunt fullbuild
-    artifacts:
-        paths:
-        - _site
+cache:
+  paths:
+    - node_modules/
+    - bower_components/
+  key: "$CI_BUILD_REPO"
 
-only:
-    - gitlab-pages
\ No newline at end of file
+sample_test:
+  stage: test
+  script:
+    - grunt build
+    - grunt test
+    - grunt jscs --force
+    - grunt jshint --force
+
+sample_deploy:
+  stage: deploy
+  only:
+    - gitlab-pages
+  script:
+    - grunt build babel uglify:dist
+  artifacts:
+    paths:
+      - dist/
-- 
GitLab