-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.drone.yml
60 lines (53 loc) · 857 Bytes
/
.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
---
kind: pipeline
name: tests
steps:
- name: run-mongo-tests
image: node:10.16.0
commands:
- chmod +x ./bin/run.sh
- ./bin/run.sh
when:
event:
- pull_request
- push
- name: run-coveralls
image: node:10.16.0
commands:
- sleep 5
- chmod +x ./bin/run-coveralls.sh
- ./bin/run-coveralls.sh
environment:
COVERALLS_REPO_TOKEN:
from_secret: coveralls_repo_token
when:
event:
- pull_request
- push
status:
- success
services:
- name: mongo
image: mongo:4.0.10
trigger:
branch:
- master
event:
- push
- pull_request
---
kind: pipeline
name: npm
steps:
- name: publish-node-mongo
image: plugins/npm
settings:
username:
from_secret: npm_username
password:
from_secret: npm_password
email:
from_secret: npm_email
trigger:
event:
- tag