From bfbea0acdeb5060c1a36ef4c6ab4a6ef84cc21c8 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Thu, 6 Jul 2017 14:12:35 +0200 Subject: [PATCH] update ci --- .gitlab-ci.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f2d2ff7..e6be27f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,10 @@ -image: hosttoday/ht-docker-node:npmts +# gitzone standard +image: hosttoday/ht-docker-node:npmci + +cache: + paths: + - .yarn/ + key: "$CI_BUILD_STAGE" stages: - test @@ -10,6 +16,7 @@ testLEGACY: stage: test script: - npmci test legacy + coverage: /\d+.?\d+?\%\s*coverage/ tags: - docker allow_failure: true @@ -18,6 +25,7 @@ testLTS: stage: test script: - npmci test lts + coverage: /\d+.?\d+?\%\s*coverage/ tags: - docker @@ -25,6 +33,7 @@ testSTABLE: stage: test script: - npmci test stable + coverage: /\d+.?\d+?\%\s*coverage/ tags: - docker @@ -47,13 +56,17 @@ trigger: - docker pages: - image: hosttoday/ht-docker-node:npmpage + image: hosttoday/ht-docker-node:npmci stage: pages script: - - npmci command npmpage --host gitlab + - npmci command yarn global add npmpage + - npmci command npmpage + tags: + - docker only: - tags artifacts: expire_in: 1 week paths: - public + allow_failure: true