-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.drone.yml
48 lines (47 loc) · 970 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
workspace:
base: /drone
path: src/github.com/qnib/qwatch
pipeline:
clone:
image: plugins/git
tags: true
test:
image: qnib/golang
pull: true
commands:
- git clone -b v2 https://github.com/go-yaml/yaml.git /drone/src/gopkg.in/yaml.v2
- ./test.sh
environment:
- GOPATH=/drone/
build-linux:
image: qnib/golang
pull: true
commands:
- ./build.sh
- ls -ltr bin/
environment:
- GOPATH=/drone/
build-linux:
image: qnib/alpn-go-dev:1.7
pull: true
commands:
- ./build.sh
- ls -ltr bin/
environment:
- GOPATH=/drone/
slack:
image: plugins/slack
channel: drone
username: drone
when:
status: [ success, failure ]
# publish:
# image: plugins/coverage
# server: http://wins.ddns.net:8008
# release:
# image: plugins/github-release
# files: bin/drone/*
# checksum: sha1
# api-key: $$GITHUB_TOKEN
# when:
# event: "tag"