From 8d876169715fc7db0c06a4bb3c21ceb9e211b3a0 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sun, 9 Apr 2017 16:59:10 +0200 Subject: [PATCH] update ci --- .gitlab-ci.yml | 37 ++++++++++++++++++++++++++++++------- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 81164a1..d910736 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,20 +1,31 @@ -image: hosttoday/ht-docker-node:npmts +# gitzone standard +image: hosttoday/ht-docker-node:npmci + +cache: + paths: + - .yarn/ + key: "$CI_BUILD_STAGE" + stages: - test - release -- page +- trigger +- pages testLEGACY: stage: test script: - npmci test legacy + coverage: /\d+.?\d+?\%\s*coverage/ tags: - docker + allow_failure: true testLTS: stage: test script: - npmci test lts + coverage: /\d+.?\d+?\%\s*coverage/ tags: - docker @@ -22,12 +33,12 @@ testSTABLE: stage: test script: - npmci test stable + coverage: /\d+.?\d+?\%\s*coverage/ tags: - docker release: stage: release - environment: npmjs-com_registry script: - npmci publish only: @@ -35,11 +46,23 @@ release: tags: - docker -pages: - image: hosttoday/ht-docker-node:npmpage - stage: page +trigger: + stage: trigger script: - - npmci command npmpage --host gitlab + - npmci trigger + only: + - tags + tags: + - docker + +pages: + image: hosttoday/ht-docker-node:npmci + stage: pages + script: + - npmci command yarn global add npmpage + - npmci command npmpage --publish gitlab + tags: + - docker only: - tags artifacts: