2017-05-25 13:26:06 +02:00
|
|
|
# gitzone standard
|
2017-05-15 14:33:01 +02:00
|
|
|
image: hosttoday/ht-docker-node:stable
|
2016-05-30 02:28:47 +02:00
|
|
|
|
2017-05-25 13:26:06 +02:00
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .yarn/
|
|
|
|
key: "$CI_BUILD_STAGE"
|
|
|
|
|
2016-05-30 02:28:47 +02:00
|
|
|
stages:
|
2016-06-05 14:28:45 +02:00
|
|
|
- test
|
2016-05-30 02:28:47 +02:00
|
|
|
- release
|
2016-06-02 20:09:28 +02:00
|
|
|
- trigger
|
2017-05-25 13:26:06 +02:00
|
|
|
- pages
|
2016-05-30 02:28:47 +02:00
|
|
|
|
2016-06-05 07:24:21 +02:00
|
|
|
before_script:
|
2017-05-25 13:28:28 +02:00
|
|
|
- yarn global add npmci
|
2016-06-05 07:24:21 +02:00
|
|
|
|
2017-05-25 13:26:06 +02:00
|
|
|
testLEGACY:
|
2016-06-05 08:06:32 +02:00
|
|
|
stage: test
|
|
|
|
script:
|
2017-05-25 13:26:06 +02:00
|
|
|
- npmci test legacy
|
|
|
|
coverage: /\d+.?\d+?\%\s*coverage/
|
2016-06-05 08:06:32 +02:00
|
|
|
tags:
|
|
|
|
- docker
|
2017-05-25 13:26:06 +02:00
|
|
|
allow_failure: true
|
|
|
|
|
|
|
|
testLTS:
|
2016-06-05 08:06:32 +02:00
|
|
|
stage: test
|
|
|
|
script:
|
2017-05-25 13:26:06 +02:00
|
|
|
- npmci test lts
|
|
|
|
coverage: /\d+.?\d+?\%\s*coverage/
|
2016-06-05 08:06:32 +02:00
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
|
2017-05-25 13:26:06 +02:00
|
|
|
testSTABLE:
|
2016-06-05 08:06:32 +02:00
|
|
|
stage: test
|
|
|
|
script:
|
2017-05-25 13:26:06 +02:00
|
|
|
- npmci test stable
|
|
|
|
coverage: /\d+.?\d+?\%\s*coverage/
|
2016-06-05 08:06:32 +02:00
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
|
2016-05-30 02:28:47 +02:00
|
|
|
release:
|
|
|
|
stage: release
|
|
|
|
script:
|
2016-05-30 02:35:44 +02:00
|
|
|
- npmci publish
|
2016-05-30 02:28:47 +02:00
|
|
|
only:
|
|
|
|
- tags
|
|
|
|
tags:
|
2016-06-02 18:39:11 +02:00
|
|
|
- docker
|
2016-06-02 19:35:01 +02:00
|
|
|
|
2016-06-02 20:09:28 +02:00
|
|
|
trigger:
|
|
|
|
stage: trigger
|
2016-06-02 19:35:01 +02:00
|
|
|
script:
|
|
|
|
- npmci trigger
|
|
|
|
only:
|
|
|
|
- tags
|
|
|
|
tags:
|
2016-09-04 13:42:22 +02:00
|
|
|
- docker
|
|
|
|
|
|
|
|
pages:
|
2017-05-25 13:26:06 +02:00
|
|
|
image: hosttoday/ht-docker-node:npmci
|
|
|
|
stage: pages
|
2016-09-04 13:42:22 +02:00
|
|
|
script:
|
2017-05-25 13:26:06 +02:00
|
|
|
- npmci command yarn global add npmpage
|
|
|
|
- npmci command npmpage
|
2017-03-24 22:00:14 +01:00
|
|
|
tags:
|
|
|
|
- docker
|
2017-05-25 13:26:06 +02:00
|
|
|
only:
|
|
|
|
- tags
|
2016-09-04 13:42:22 +02:00
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
paths:
|
|
|
|
- public
|