UNPKG

969 BYAMLView Raw
1# gitzone standard
2image: hosttoday/ht-docker-node:npmci
3
4cache:
5 paths:
6 - .yarn/
7 key: "$CI_BUILD_STAGE"
8
9stages:
10- test
11- release
12- trigger
13- pages
14
15testLEGACY:
16 stage: test
17 script:
18 - npmci test legacy
19 coverage: /\d+.?\d+?\%\s*coverage/
20 tags:
21 - docker
22 allow_failure: true
23
24testLTS:
25 stage: test
26 script:
27 - npmci test lts
28 coverage: /\d+.?\d+?\%\s*coverage/
29 tags:
30 - docker
31
32testSTABLE:
33 stage: test
34 script:
35 - npmci test stable
36 coverage: /\d+.?\d+?\%\s*coverage/
37 tags:
38 - docker
39
40release:
41 stage: release
42 script:
43 - npmci publish
44 only:
45 - tags
46 tags:
47 - docker
48
49trigger:
50 stage: trigger
51 script:
52 - npmci trigger
53 only:
54 - tags
55 tags:
56 - docker
57
58pages:
59 image: hosttoday/ht-docker-node:npmci
60 stage: pages
61 script:
62 - npmci command yarn global add npmpage
63 - npmci command npmpage
64 tags:
65 - docker
66 only:
67 - tags
68 artifacts:
69 expire_in: 1 week
70 paths:
71 - public