-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.drone.yml
87 lines (78 loc) · 1.48 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
---
platform:
os: linux
arch: amd64
# Begin
clone:
git-clone:
commands: |
set -ex
git clone -b ${DRONE_TAG:-$DRONE_BRANCH} $DRONE_REMOTE_URL .
if [ x$DRONE_PULL_REQUEST != x ]; then
git fetch origin refs/pull/$DRONE_PULL_REQUEST/head
EMAIL=ci git merge --no-edit FETCH_HEAD
fi
git rev-parse HEAD
image: "casperlabs/buildenv:latest"
kind: pipeline
name: build-bors-merge
steps:
- name: run-lint
commands:
- "make prepare"
- "make lint"
image: "casperlabs/buildenv:latest"
when:
branch:
- staging
- trying
- master
event:
- pull_request
- push
- name: run-tests
commands:
- "make prepare"
- "make test"
image: "casperlabs/buildenv:latest"
when:
branch:
- staging
- trying
- master
event:
- pull_request
- push
depends_on:
- run-lint
trigger:
branch:
- master
- trying
- staging
---
kind: pipeline
name: failed-build-alert
clone:
disable: true
steps:
- name: notify
image: plugins/slack
settings:
webhook:
from_secret: slack_webhook
template:
- |
erc2-repo build status: *{{ uppercasefirst build.status }}*
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 }}>
trigger:
status:
- failure
branch:
- master
- trying
- staging
depends_on:
- build-bors-merge