From 7b238535c87b4841c0130c209880d1a9262d9e48 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sat, 11 Mar 2017 15:11:37 +0100 Subject: [PATCH] update gitlab ci --- .gitlab-ci.yml | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 92a0f90..5d86a1e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,21 +1,32 @@ -image: hosttoday/ht-docker-node:npmts +# gitzone standard +image: hosttoday/ht-docker-node:npmci + +cache: + paths: + - .yarn/ + key: "$CI_BUILD_STAGE" + untracked: true 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 @@ -23,6 +34,7 @@ testSTABLE: stage: test script: - npmci test stable + coverage: /\d+.?\d+?\%\s*coverage/ tags: - docker @@ -35,15 +47,23 @@ release: tags: - docker +trigger: + stage: trigger + script: + - npmci trigger + only: + - tags + tags: + - docker + pages: image: hosttoday/ht-docker-node:npmpage - stage: page + stage: pages script: - - npmci test stable - - npmci command npmpage --host gitlab + - npmci command npmpage --publish gitlab only: - tags artifacts: expire_in: 1 week paths: - - public \ No newline at end of file + - public