forked from govend/govend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
56 lines (48 loc) · 1.01 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
build:
test:
image: golang:$$GO_VERSION
environment:
- GO15VENDOREXPERIMENT=1
commands:
# install the tool
- go install
# remove the deps in the vendor directory
- rm -rf vendor
# download those deps again and prune
- govend -vlt --prune
# ensure the right deps were downloaded and pruned
- go install
# execute unit tests and write the coverage report
- go test -cover -coverprofile coverage.out
release:
image: golang:1.6
commands:
- go get github.com/mitchellh/gox
- go get github.com/jackspirou/tarpack
- gox
- tarpack govend_*
when:
event: tag
success: true
matrix:
GO_VERSION:
- 1.5
- 1.5.1
- 1.5.2
- 1.5.3
- 1.6
- latest
publish:
coverage:
when:
branch: master
success: true
matrix:
GO_VERSION: 1.6
github_release:
api_key: $$GITHUB_TOKEN
files:
- govend_*.tar.gz
when:
event: tag
success: true