-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.drone.yml
81 lines (74 loc) · 1.76 KB
/
.drone.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
76
77
78
79
80
81
kind: pipeline
name: default
steps:
# - name: restore-cache
# image: drillster/drone-volume-cache
# volumes:
# - name: cache
# path: /cache
# settings:
# restore: true
# mount:
# - ./node_modules
- name: build
image: node:lts-alpine
commands:
- npm set config package-lock false
- npm install
- npm test
- name: coveralls
pull: true
image: lizheming/drone-coveralls
environment:
COVERALLS_REPO_TOKEN:
from_secret: coveralls_token
settings:
debug: true
files:
- coverage/lcov.info
# - name: code analysis
# image: jgentry/drone-sonar
# environment:
# sonar_host: "https://sonarcloud.io"
# sonar_login:
# from_secret: sonar_token
# - name: rebuild-cache
# image: drillster/drone-volume-cache
# volumes:
# - name: cache
# path: /cache
# settings:
# rebuild: true
# mount:
# - ./node_modules
# - name: wechat
# image: lizheming/drone-wechat
# pull: always
# settings:
# title: >
# {% if success %}
# ✅ {{repo.owner}}/{{repo.name}} 第 {{build.number}} 次构建成功!
# {% else %}
# ❌ {{repo.owner}}/{{repo.name}} 第 {{build.number}} 次构建失败了,快来修理下吧。
# {% endif %}
# corpid:
# from_secret: corpid
# corp_secret:
# from_secret: corp_secret
# agent_id:
# from_secret: agent_id
# to_user: "@all"
# message: >
# {% if success %}
# 😊主人,{{repo.owner}}/{{repo.name}}第{{build.number}}次构建成功!
# {% else %}
# 😭主人,{{repo.owner}}/{{repo.name}}第{{build.number}}次构建失败了,快来修理下吧。
# {% endif %}
# when:
# status:
# - success
# - failure
# volumes:
# - name: cache
# host:
# path: /tmp/cache