From 8b0e438d7b6ce6e97f0e4c87e10e4e35a4eae072 Mon Sep 17 00:00:00 2001
From: Alexander Olofsson <alexander.olofsson@liu.se>
Date: Mon, 18 Dec 2017 10:48:48 +0100
Subject: [PATCH] Improvements to the pipeline

---
 .gitlab-ci.yml | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 89317a2..01a4b4e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,8 +5,20 @@ cache:
   paths:
     - node_modules/
 
-client:
+build:
+  stage: test
   script:
     - npm install
     - mkdir -p public/js public/css
+    - echo "TODO: Tests"
+
+package:
+  stage: deploy
+  script:
+    - npm install
     - npm run build
+    - npm uninstall --save-prod
+    - npm pack
+  artifacts:
+    paths:
+      - './*.tgz'
-- 
GitLab