update ci

This commit is contained in:
Philipp Kunz 2017-09-08 23:24:44 +02:00
parent a38e637e8d
commit 124d7b9f0a

View File

@ -1,62 +1,74 @@
# gitzone standard # gitzone standard
image: hosttoday/ht-docker-node:stable image: hosttoday/ht-docker-node:npmci
cache: cache:
paths: paths:
- .yarn/ - .yarn/
key: "$CI_BUILD_STAGE" key: "$CI_BUILD_STAGE"
mirror:
stage: mirror
script:
- npmci git mirror
tags:
- docker
stages: stages:
- mirror
- test - test
- release - release
- trigger - trigger
- pages - pages
before_script:
- yarn global add npmci@2.4.1
testLEGACY: testLEGACY:
stage: test stage: test
script: script:
- npmci test legacy - npmci node install legacy
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/ coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- docker - docker
allow_failure: true allow_failure: true
testLTS: testLTS:
stage: test stage: test
script: script:
- npmci test lts - npmci node install lts
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/ coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- docker - docker
testSTABLE: testSTABLE:
stage: test stage: test
script: script:
- npmci test stable - npmci node install stable
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/ coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- docker - docker
release: release:
stage: release stage: release
script: script:
- npmci publish npm - npmci npm prepare
- npmci npm publish
only: only:
- tags - tags
tags: tags:
- docker - docker
trigger: trigger:
stage: trigger stage: trigger
script: script:
- npmci trigger - npmci trigger
only: only:
- tags - tags
tags: tags:
- docker - docker
pages: pages:
image: hosttoday/ht-docker-node:npmci image: hosttoday/ht-docker-node:npmci