From 96354f6202c0de8892a7516658ea1a5e65a28615 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Thu, 4 Jun 2020 13:50:37 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20=E2=80=94=20Deploy=20build=20on?= =?UTF-8?q?=20Gitlab=20page=20before=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 47 +++++++++++++++++++++-------------------------- 1 file changed, 21 insertions(+), 26 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1f499f4d..93d02b6b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,36 +1,14 @@ image: weboaks/node-karma-protractor-chrome stages: - - test - pages + - test # - e2e cache: paths: - node_modules/ -test: - stage: test - script: - - npm i - - pkill Xvfb - - npm run test:ci - artifacts: - paths: - - coverage/ - cache: - key: "$CI_COMMIT_REF_NAME" - paths: - - node_modules/ - -test-build: - stage: test - script: - - yarn install --pure-lockfile - - npx ng build --prod - only: - - master - pages: stage: pages script: @@ -43,10 +21,27 @@ pages: expire_in: '2 hours' only: - develop - cache: - key: "$CI_COMMIT_REF_NAME" + +test: + stage: test + script: + - npm i + - pkill Xvfb + - npm run test:ci + artifacts: paths: - - node_modules/ + - coverage/ + cache: + policy: pull + +test-build: + stage: test + script: + - yarn install --pure-lockfile + - npx ng build --prod + only: + - master + cache: policy: pull #e2e: