From 2ab0120e21d6f5f0172a84425475ee7f2e68e76b Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Thu, 25 Oct 2018 15:56:55 +0200 Subject: [PATCH] Install modules only if needed --- .gitlab-ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c9344d5e..7436df22 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,9 +4,6 @@ cache: paths: - node_modules -before_script: - - yarn install - stages: - test - build @@ -15,6 +12,7 @@ stages: lint: stage: test script: + - yarn install - yarn run lint flow: @@ -25,11 +23,13 @@ flow: unit: stage: test script: + - yarn install - yarn run test build development: stage: build script: + - yarn install - yarn run build:dev artifacts: expire_in: 1 month @@ -39,6 +39,7 @@ build development: build beta: stage: build script: + - yarn install - yarn run build:beta artifacts: expire_in: 1 month @@ -49,6 +50,7 @@ build beta: build stable: stage: build script: + - yarn install - yarn run build:stable artifacts: expire_in: 1 month