forked from erikgrinaker/toydb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
50 lines (44 loc) · 815 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
kind: pipeline
name: default
clone:
depth: 1
env: &env
CARGO_HOME: ./.cargo
steps:
- name: build
image: rust:1.53
pull: true
environment: *env
commands:
- cargo build --tests
- name: test
image: rust:1.53
environment: *env
commands:
- cargo test
depends_on:
- build
- name: lint
image: rust:1.53
environment: *env
commands:
- rustup component add clippy
# wait for test step to finish building
- sleep 2
- cargo clippy --tests -- -D warnings
depends_on:
- build
- name: notify
image: drillster/drone-email
settings:
host: {from_secret: smtp_hostname}
username: {from_secret: smtp_username}
password: {from_secret: smtp_password}
from: Drone CI <[email protected]>
when:
status:
- changed
- failure
depends_on:
- test
- lint