-
Notifications
You must be signed in to change notification settings - Fork 4
/
.drone.yml
55 lines (48 loc) · 1.14 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
---
kind: pipeline
type: docker
name: default
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: rebuild-cache
image: zoickx/drone-helper
commands:
- drone-helper cache --deps="Dockerfile helix.opam"
volumes:
- name: dockersock
path: /var/run/docker.sock
- name: build-vellvm
image: cache--${DRONE_REPO}:${DRONE_COMMIT_AFTER}
pull: never
commands:
- opam exec -- make -j 1 vellvm
- name: compile-helix
image: cache--${DRONE_REPO}:${DRONE_COMMIT_AFTER}
pull: never
commands:
- opam exec -- make
- name: test-helix
image: cache--${DRONE_REPO}:${DRONE_COMMIT_AFTER}
pull: never
commands:
- opam exec -- make test
- name: notify
image: zoickx/drone-helper
commands:
- drone-helper notify --discord
when:
status:
- success
- failure
settings:
discord_webhook_token:
from_secret: discord_webhook_token
discord_webhook_id:
from_secret: discord_webhook_id