-
Notifications
You must be signed in to change notification settings - Fork 66
/
.drone.yml
75 lines (62 loc) · 1.13 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
---
# This file must be signed. You can do so with the `mage drone` command
kind: pipeline
type: docker
name: main
platform:
os: linux
arch: amd64
trigger:
branch: main
event:
- push
steps:
- name: build
image: grafana/grafana-plugin-ci:1.9.5
commands:
- mage -v build
- name: lint
image: grafana/grafana-plugin-ci:1.9.5
commands:
- mage -v lint
- name: test
image: grafana/grafana-plugin-ci:1.9.5
commands:
# -race requires cgo + a C compiler
- apt update
- apt install -y gcc
- mage -v testRace
environment:
CGO_ENABLED: "1"
---
kind: pipeline
type: docker
name: pr
platform:
os: linux
arch: amd64
trigger:
event:
- pull_request
steps:
- name: build
image: grafana/grafana-plugin-ci:1.9.5
commands:
- mage -v build
- name: lint
image: grafana/grafana-plugin-ci:1.9.5
commands:
- mage -v lint
- name: test
image: grafana/grafana-plugin-ci:1.9.5
commands:
# -race requires cgo + a C compiler
- apt update
- apt install -y gcc
- mage -v testRace
environment:
CGO_ENABLED: "1"
---
kind: signature
hmac: cee688a6f8ed3ecb1ddd384e349a6556d28b23b298057d8fa02da37ab50b0ba7
...