-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pcit.yml
75 lines (66 loc) · 1.48 KB
/
.pcit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
language: node_js
git:
submodule_override:
"test/resource": "https://gitee.com/khs1994-php/resource"
pipeline:
install:
image: khs1994/node:git
commands:
- npm config set cache /tmp/pcit_cache/npm
- npm install --registry=https://registry.npm.taobao.org
script:
image: node:${NODE_VERSION}-alpine
# environment:
# - NODE_TENCENT_AI_APP_KEY=abc
# - NODE_TENCENT_AI_APP_ID=123
commands:
- npm test
build:
image: node:${NODE_VERSION}-alpine
commands:
- npm run prepublishOnly
when:
status: success
after_success:
image: khs1994/node:git
# environment:
# - CODECOV_TOKEN=XXX
commands:
- npm run codecov -- --env=NODE_VERSION --build ${PCIT_BUILD_ID}
- rm -rf src/client/data.txt
when:
status: success
version_daily:
commands:
- npm --no-git-tag-version version prerelease --preid=dev.$(date +"%Y%m%d")
when:
event: ['push']
status: success
matrix:
- NODE_VERSION: 12
deploy:
settings:
provider: npm
email: [email protected]
api_key: ${NPM_TOKEN}
# tag: next
when:
event: tag
status: success
matrix:
- NODE_VERSION: 12
deploy_next:
settings:
provider: npm
email: [email protected]
api_key: ${NPM_TOKEN}
tag: next
when:
event: push
status: success
matrix:
- NODE_VERSION: 12
matrix:
NODE_VERSION:
- 12
- 10