added test coverage
added github release experiment
This commit is contained in:
parent
1df73b21b4
commit
3ffcd1fd09
17
.drone.yml
17
.drone.yml
@ -3,8 +3,23 @@ pipeline:
|
|||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- go get ./...
|
- go get ./...
|
||||||
|
- go vet ./...
|
||||||
- go build -o dist/PiwigoDirectoryUploader cmd/PiwigoDirectoryUploader/PiwigoDirectoryUploader.go
|
- go build -o dist/PiwigoDirectoryUploader cmd/PiwigoDirectoryUploader/PiwigoDirectoryUploader.go
|
||||||
- go test ./...
|
- go test -cover ./...
|
||||||
when:
|
when:
|
||||||
event: [push, tag]
|
event: [push, tag]
|
||||||
branch: master
|
branch: master
|
||||||
|
|
||||||
|
publish:
|
||||||
|
image: plugins/github-release
|
||||||
|
settings:
|
||||||
|
api_key:
|
||||||
|
from_secret: github_token
|
||||||
|
files: dist/*
|
||||||
|
checksum:
|
||||||
|
- md5
|
||||||
|
- sha256
|
||||||
|
- sha512
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
branch: master
|
||||||
|
Loading…
Reference in New Issue
Block a user