forked from casper-network/casper-blockexplorer-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
118 lines (102 loc) · 2.27 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
---
kind: pipeline
type: docker
name: ci-frontend
steps:
- name: npm install
image: casperlabs/node-build-u1804
commands:
- make frontend-install
- name: npm audit
image: casperlabs/node-build-u1804
commands:
- make frontend-audit
- name: npm lint
image: casperlabs/node-build-u1804
commands:
- make frontend-lint
- name: npm test
image: casperlabs/node-build-u1804
commands:
- make frontend-test
trigger:
branch:
- dev
- "feat-*"
- "release-*"
event:
include:
- pull_request
- push
exclude:
- tag
- cron
---
kind: pipeline
type: docker
name: ci-middleware
steps:
- name: npm install
image: casperlabs/node-build-u1804
commands:
- make middleware-install
- name: npm audit
image: casperlabs/node-build-u1804
commands:
- make middleware-audit
- name: npm lint
image: casperlabs/node-build-u1804
commands:
- make middleware-lint
- name: npm test
image: casperlabs/node-build-u1804
commands:
- make middleware-test
environment:
MIDDLEWARE_URL: http://localhost:4000/rpc # middleware URL
NODE_URLS: https://rpc.testnet.casperlabs.io/rpc
NETWORK_NAME: casper-test
PEERS_UPDATE_INTERVAL: 300
trigger:
branch:
- dev
- "feat-*"
- "release-*"
event:
include:
- pull_request
- push
exclude:
- tag
- cron
---
kind: pipeline
type: docker
name: nightly-testing
steps:
- name: npm install
image: casperlabs/node-build-u1804
commands:
- make nightly-npm-install
- name: npm test
image: casperlabs/node-build-u1804
commands:
- make nightly-npm-tests
- name: notify
image: plugins/slack
settings:
webhook:
from_secret: slack_webhook_nightly
template:
- |
Casper-BlockExplorer Nightly Test Status: *{{ uppercasefirst build.status }}*
Repo: {{ repo.name }}
Author: {{ build.author }}
Drone Build: <{{ build.link }}|#{{ build.number }}>
Commit Link: <https://github.com/{{repo.owner}}/{{repo.name}}/commit/{{build.commit}}|{{ truncate build.commit 10 }}>
when:
status:
- failure
- success
trigger:
cron: [nightly-tests-cron]