From 41c6ecdb1cbc7c47d21f4dd9119103aac6087c14 Mon Sep 17 00:00:00 2001 From: Aarni Halinen Date: Wed, 25 Jul 2018 11:34:45 +0300 Subject: [PATCH] Update build job --- .gitlab-ci.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 72f2af0..23e9655 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,38 +1,42 @@ stages: + - setup # - test - lint - publish - - deploy + - deploy_dev + +cache: + untracked: true + key: "$CI_COMMIT_REF_NAME" + paths: + - node_modules/ + +setup: + stage: setup + script: + - npm install # test:unit: # image: node:7.10.0 # stage: test -# before_script: -# - npm install # script: # - npm run test:unit # test:e2e: # image: node:7.10.0 # stage: test -# before_script: -# - npm install # script: # - npm run test:e2e ts:lint: image: node:7.10.0 stage: lint - before_script: - - npm install script: - npm run lint:ts sass:lint: image: node:7.10.0 stage: lint - before_script: - - npm install script: - npm run lint:sass