From 0f056cb6501c3a4c55033ed7bd56c0696ef1a861 Mon Sep 17 00:00:00 2001 From: Karl-Philipp Wulfert Date: Tue, 14 May 2019 16:25:32 +0200 Subject: [PATCH] ci: adjust jobs to match configuration --- .gitlab-ci.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 09f14605..357a50fa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,6 +5,9 @@ cache: paths: - node_modules +before_script: + - npm install + stages: - build - test @@ -13,7 +16,6 @@ stages: build: stage: build script: - - npm install - npm run build artifacts: paths: @@ -38,23 +40,22 @@ scheduled-audit: mocha: stage: test script: - - npm install - npm test pages: stage: deploy script: - - npm install - npm run documentation - mv docs public - only: - - master artifacts: paths: - public + only: + - /^v[0-9]+\.[0-9]+\.[0-9]+$/ docker: image: registry.gitlab.com/openstapps/projectmanagement/builder:latest + before_script: [] dependencies: - build stage: deploy