86 lines
1.2 KiB
YAML
86 lines
1.2 KiB
YAML
# gitzone standard
|
|
image: hosttoday/ht-docker-node:npmci
|
|
|
|
cache:
|
|
paths:
|
|
- .yarn/
|
|
key: "$CI_BUILD_STAGE"
|
|
|
|
stages:
|
|
- mirror
|
|
- security
|
|
- test
|
|
- release
|
|
- trigger
|
|
- pages
|
|
|
|
mirror:
|
|
stage: mirror
|
|
script:
|
|
- npmci git mirror
|
|
tags:
|
|
- docker
|
|
|
|
security:
|
|
stage: security
|
|
script:
|
|
- npmci command yarn global add snyk
|
|
- npmci npm install
|
|
- npmci command snyk test
|
|
tags:
|
|
- docker
|
|
|
|
testLTS:
|
|
stage: test
|
|
script:
|
|
- npmci node install lts
|
|
- npmci npm install
|
|
- npmci npm test
|
|
coverage: /\d+.?\d+?\%\s*coverage/
|
|
tags:
|
|
- docker
|
|
|
|
testSTABLE:
|
|
stage: test
|
|
script:
|
|
- npmci node install stable
|
|
- npmci npm install
|
|
- npmci npm test
|
|
coverage: /\d+.?\d+?\%\s*coverage/
|
|
tags:
|
|
- docker
|
|
|
|
release:
|
|
stage: release
|
|
script:
|
|
- npmci npm prepare
|
|
- npmci npm publish
|
|
only:
|
|
- tags
|
|
tags:
|
|
- 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
|