From f59cc5832c0b1cfc4b43889e1cedc360e42850e8 Mon Sep 17 00:00:00 2001 From: Anselm Rochus Stordeur Date: Thu, 21 Feb 2019 16:13:01 +0100 Subject: [PATCH] fix: fix ci job dependencies and caching --- .gitlab-ci.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8a9d7d56..3fd3efa8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,8 @@ -image: registry.gitlab.com/openstapps/projectmanagement/node:latest +image: registry.gitlab.com/openstapps/projectmanagement/node cache: key: ${CI_COMMIT_REF_SLUG} paths: - - lib - node_modules stages: @@ -11,25 +10,21 @@ stages: - test - publish +before_script: + - npm install + build: - before_script: - - npm install stage: build script: - npm run build artifacts: - untracked: true paths: - - node_modules/ - only: - - /(^v[0-9]+\.[0-9]+\.[0-9]+$|^master$|^develop$)/ + - lib tags: - docker test: stage: test - dependencies: - - build script: - npm test tags: @@ -39,7 +34,6 @@ publish: image: registry.gitlab.com/openstapps/projectmanagement/builder stage: publish dependencies: - - test - build variables: DOCKER_DRIVER: overlay2