update ci
This commit is contained in:
parent
08152f9b51
commit
2e12fd7548
@ -1,43 +1,45 @@
|
||||
# gitzone standard
|
||||
image: hosttoday/ht-docker-node:stable
|
||||
|
||||
cache:
|
||||
paths:
|
||||
- .yarn/
|
||||
key: "$CI_BUILD_STAGE"
|
||||
|
||||
stages:
|
||||
- test
|
||||
- release
|
||||
- trigger
|
||||
- page
|
||||
|
||||
- pages
|
||||
|
||||
before_script:
|
||||
- npm install npmci -q -g
|
||||
|
||||
testLEGACY:
|
||||
stage: test
|
||||
script:
|
||||
- npmci test legacy
|
||||
coverage: /\d+.?\d+?\%\s*coverage/
|
||||
tags:
|
||||
- docker
|
||||
allow_failure: true
|
||||
|
||||
testLTS:
|
||||
stage: test
|
||||
script:
|
||||
- npmci install lts
|
||||
- npmci command npm install -g -q npmts
|
||||
- npmci test lts
|
||||
coverage: /\d+.?\d+?\%\s*coverage/
|
||||
tags:
|
||||
- docker
|
||||
|
||||
testSTABLE:
|
||||
stage: test
|
||||
script:
|
||||
- npmci install stable
|
||||
- npmci command npm install -g -q npmts
|
||||
- npmci test stable
|
||||
coverage: /\d+.?\d+?\%\s*coverage/
|
||||
tags:
|
||||
- docker
|
||||
|
||||
testLEGACY:
|
||||
stage: test
|
||||
script:
|
||||
- npmci install legacy
|
||||
- npmci command npm install -g -q npmts
|
||||
- npmci test legacy
|
||||
tags:
|
||||
- docker
|
||||
allow_failure: true
|
||||
|
||||
release:
|
||||
stage: release
|
||||
script:
|
||||
@ -57,15 +59,15 @@ trigger:
|
||||
- docker
|
||||
|
||||
pages:
|
||||
stage: page
|
||||
image: hosttoday/ht-docker-node:npmci
|
||||
stage: pages
|
||||
script:
|
||||
- npmci test stable
|
||||
- npmci command npm install -g -q npmpage
|
||||
- npmci command npmpage --host gitlab
|
||||
only:
|
||||
- tags
|
||||
- npmci command yarn global add npmpage
|
||||
- npmci command npmpage
|
||||
tags:
|
||||
- docker
|
||||
only:
|
||||
- tags
|
||||
artifacts:
|
||||
expire_in: 1 week
|
||||
paths:
|
||||
|
Loading…
Reference in New Issue
Block a user