From 04fabac8eac89d3ef2c680d3b53aaa3be1b5f170 Mon Sep 17 00:00:00 2001 From: Karl-Philipp Wulfert Date: Wed, 27 Feb 2019 13:43:44 +0100 Subject: [PATCH] ci: remove npm install before script Fixes #5 --- .gitlab-ci.yml | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 18cdab43..bfbd41d6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,14 +5,10 @@ cache: paths: - node_modules -before_script: - - npm install - stages: - build - test - deploy - - publish build:build: stage: build @@ -27,20 +23,32 @@ build:build: test:audit: stage: test script: + - npm install - npm audit test:mocha: stage: test script: + - npm install - npm test -publish:image: - image: docker:stable +deploy:pages: + stage: deploy + script: + - npm install + - npm run documentation + - mv docs public + only: + - master + artifacts: + paths: + - public + +deploy:image: + image: registry.gitlab.com/openstapps/projectmanagement/builder:latest dependencies: - build:build - - test:mocha - - test:audit - stage: publish + stage: deploy variables: DOCKER_DRIVER: overlay2 services: @@ -56,13 +64,3 @@ publish:image: only: - /^v[0-9]+\.[0-9]+\.[0-9]+$/ -deploy:pages: - stage: deploy - script: - - npm run documentation - - mv docs public - only: - - /^v[0-9]+\.[0-9]+\.[0-9]+$/ - artifacts: - paths: - - public