2017-02-24 02:00:15 +00:00
|
|
|
# gitzone standard
|
2017-04-17 15:22:18 +00:00
|
|
|
image: hosttoday/ht-docker-node:npmci
|
|
|
|
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .yarn/
|
|
|
|
key: "$CI_BUILD_STAGE"
|
2017-02-24 02:00:15 +00:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- release
|
|
|
|
- trigger
|
|
|
|
- pages
|
|
|
|
|
|
|
|
testLEGACY:
|
|
|
|
stage: test
|
|
|
|
script:
|
2017-08-29 13:20:18 +00:00
|
|
|
- npmci node install lts
|
|
|
|
- npmci npm install
|
|
|
|
- npmci npm test
|
2017-02-24 02:00:15 +00:00
|
|
|
coverage: /\d+.?\d+?\%\s*coverage/
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
allow_failure: true
|
|
|
|
|
|
|
|
testLTS:
|
|
|
|
stage: test
|
|
|
|
script:
|
2017-08-29 13:20:18 +00:00
|
|
|
- npmci node install lts
|
|
|
|
- npmci npm install
|
|
|
|
- npmci npm test
|
2017-02-24 02:00:15 +00:00
|
|
|
coverage: /\d+.?\d+?\%\s*coverage/
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
|
|
|
|
testSTABLE:
|
|
|
|
stage: test
|
|
|
|
script:
|
2017-08-29 13:20:18 +00:00
|
|
|
- npmci node install stable
|
|
|
|
- npmci npm install
|
|
|
|
- npmci npm test
|
2017-02-24 02:00:15 +00:00
|
|
|
coverage: /\d+.?\d+?\%\s*coverage/
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
|
|
|
|
release:
|
|
|
|
stage: release
|
|
|
|
script:
|
2017-08-29 13:20:18 +00:00
|
|
|
- npmci npm prepare
|
|
|
|
- npmci npm publish
|
2017-02-24 02:00:15 +00:00
|
|
|
only:
|
|
|
|
- tags
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
stage: trigger
|
|
|
|
script:
|
|
|
|
- npmci trigger
|
|
|
|
only:
|
|
|
|
- tags
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
|
|
|
|
pages:
|
2017-04-17 15:22:18 +00:00
|
|
|
image: hosttoday/ht-docker-node:npmci
|
2017-02-24 02:00:15 +00:00
|
|
|
stage: pages
|
|
|
|
script:
|
2017-04-17 15:22:18 +00:00
|
|
|
- npmci command yarn global add npmpage
|
2017-02-24 02:00:15 +00:00
|
|
|
- npmci command npmpage --publish gitlab
|
2017-04-17 15:22:18 +00:00
|
|
|
tags:
|
|
|
|
- docker
|
2017-02-24 02:00:15 +00:00
|
|
|
only:
|
|
|
|
- tags
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
paths:
|
|
|
|
- public
|