2017-04-30 16:22:34 +00:00
|
|
|
# gitzone standard
|
2016-08-30 21:18:04 +00:00
|
|
|
image: hosttoday/ht-docker-node:npmci
|
2016-05-26 19:18:14 +00:00
|
|
|
|
2017-04-30 16:22:34 +00:00
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .yarn/
|
|
|
|
key: "$CI_BUILD_STAGE"
|
|
|
|
|
2016-05-26 19:18:14 +00:00
|
|
|
stages:
|
2018-04-08 23:03:39 +00:00
|
|
|
- security
|
2016-05-26 19:18:14 +00:00
|
|
|
- test
|
|
|
|
- release
|
2016-06-09 22:55:29 +00:00
|
|
|
- trigger
|
2016-08-30 21:18:04 +00:00
|
|
|
- pages
|
2016-05-26 19:18:14 +00:00
|
|
|
|
2017-09-13 15:47:30 +00:00
|
|
|
mirror:
|
2018-04-08 23:03:39 +00:00
|
|
|
stage: security
|
2017-09-13 15:47:30 +00:00
|
|
|
script:
|
2018-04-08 23:03:39 +00:00
|
|
|
- npmci git mirror
|
2017-09-13 15:47:30 +00:00
|
|
|
tags:
|
2018-04-08 23:03:39 +00:00
|
|
|
- docker
|
|
|
|
|
|
|
|
snyk:
|
|
|
|
stage: security
|
|
|
|
script:
|
|
|
|
- npmci command yarn global add snyk
|
|
|
|
- npmci command yarn install --ignore-scripts
|
|
|
|
- npmci command snyk test
|
|
|
|
tags:
|
|
|
|
- docker
|
2017-09-13 15:47:30 +00:00
|
|
|
|
2016-06-03 14:46:10 +00:00
|
|
|
testLEGACY:
|
|
|
|
stage: test
|
|
|
|
script:
|
2018-04-08 23:03:39 +00:00
|
|
|
- npmci node install legacy
|
|
|
|
- npmci npm install
|
|
|
|
- npmci npm test
|
2017-04-30 16:22:34 +00:00
|
|
|
coverage: /\d+.?\d+?\%\s*coverage/
|
2016-06-03 14:46:10 +00:00
|
|
|
tags:
|
2018-04-08 23:03:39 +00:00
|
|
|
- docker
|
2016-06-07 07:02:58 +00:00
|
|
|
allow_failure: true
|
2016-06-03 14:46:10 +00:00
|
|
|
|
2016-05-26 19:18:14 +00:00
|
|
|
testLTS:
|
|
|
|
stage: test
|
|
|
|
script:
|
2018-04-08 23:03:39 +00:00
|
|
|
- npmci node install lts
|
|
|
|
- npmci npm install
|
|
|
|
- npmci npm test
|
2017-04-30 16:22:34 +00:00
|
|
|
coverage: /\d+.?\d+?\%\s*coverage/
|
2016-05-26 19:18:14 +00:00
|
|
|
tags:
|
2018-04-08 23:03:39 +00:00
|
|
|
- docker
|
2016-05-26 19:18:14 +00:00
|
|
|
|
|
|
|
testSTABLE:
|
|
|
|
stage: test
|
|
|
|
script:
|
2018-04-08 23:03:39 +00:00
|
|
|
- npmci node install stable
|
|
|
|
- npmci npm install
|
|
|
|
- npmci npm test
|
2017-04-30 16:22:34 +00:00
|
|
|
coverage: /\d+.?\d+?\%\s*coverage/
|
2016-05-26 19:18:14 +00:00
|
|
|
tags:
|
2018-04-08 23:03:39 +00:00
|
|
|
- docker
|
2016-05-26 19:18:14 +00:00
|
|
|
|
|
|
|
release:
|
|
|
|
stage: release
|
|
|
|
script:
|
2018-04-08 23:03:39 +00:00
|
|
|
- npmci npm prepare
|
2018-05-03 11:30:01 +00:00
|
|
|
- npmci npm publish
|
2016-05-26 19:18:14 +00:00
|
|
|
only:
|
2018-04-08 23:03:39 +00:00
|
|
|
- tags
|
2016-05-26 19:18:14 +00:00
|
|
|
tags:
|
2018-04-08 23:03:39 +00:00
|
|
|
- docker
|
2016-06-09 22:55:29 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
stage: trigger
|
|
|
|
script:
|
2018-04-08 23:03:39 +00:00
|
|
|
- npmci trigger
|
2016-06-09 22:55:29 +00:00
|
|
|
only:
|
2018-04-08 23:03:39 +00:00
|
|
|
- tags
|
2016-06-09 22:55:29 +00:00
|
|
|
tags:
|
2018-04-08 23:03:39 +00:00
|
|
|
- docker
|
2016-08-30 21:18:04 +00:00
|
|
|
|
|
|
|
pages:
|
2017-04-01 18:58:23 +00:00
|
|
|
image: hosttoday/ht-docker-node:npmci
|
2016-08-30 21:18:04 +00:00
|
|
|
stage: pages
|
|
|
|
script:
|
2017-04-01 19:02:47 +00:00
|
|
|
- npmci command yarn global add npmpage
|
2018-04-08 23:03:39 +00:00
|
|
|
- npmci command npmpage
|
2017-03-31 15:02:19 +00:00
|
|
|
tags:
|
|
|
|
- docker
|
2017-04-30 16:22:34 +00:00
|
|
|
only:
|
|
|
|
- tags
|
2016-08-30 21:18:04 +00:00
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
paths:
|
2016-08-31 11:02:10 +00:00
|
|
|
- public
|