From d5570311ee2b40516fe00ccff88b6b1a3307db5c Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Fri, 9 Jun 2017 23:34:37 +0200 Subject: [PATCH] update ci --- .gitlab-ci.yml | 41 ++++++++++++++++++++++++++++++++++++++--- npmextra.json | 5 +++++ 2 files changed, 43 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e745cf1..56a2530 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 +- 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,15 +33,39 @@ 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: - tags tags: - - docker \ No newline at end of file + - docker + +trigger: + stage: trigger + script: + - 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 + tags: + - docker + only: + - tags + artifacts: + expire_in: 1 week + paths: + - public diff --git a/npmextra.json b/npmextra.json index d79acde..f69e523 100644 --- a/npmextra.json +++ b/npmextra.json @@ -1,5 +1,10 @@ { "npmts":{ "mode":"default" + }, + "npmci": { + "globalNpmTools": [ + "npmts" + ] } } \ No newline at end of file