Browse Source

Fix Drone CI pipeline

pull/11/head
James Mills 2 years ago
parent
commit
1dfcd62f76
Signed by: prologic GPG Key ID: AC4C014F1440EBD6
  1. 10
      .drone.yml
  2. 8
      Makefile

10
.drone.yml

@ -5,18 +5,10 @@ steps:
- name: build
image: golang:latest
commands:
- go test -v -short -cover -coverprofile=coverage.txt ./...
- go test -v -cover -coverprofile=coverage.txt -covermode=atomic -coverpkg=$(shell go list) -race .
- name: coverage
image: plugins/codecov
settings:
token:
from_secret: codecov-token
- name: notify
image: plugins/webhook
urls: https://msgbus.mills.io/ci.mills.io
when:
status:
- success
- failure

8
Makefile

@ -29,8 +29,12 @@ profile:
bench:
@go test -v -benchmem -bench=. ./...
test:
@go test -v -cover -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... -race ./...
test: build
@go test -v \
-cover -coverprofile=coverage.txt -covermode=atomic \
-coverpkg=$(shell go list) \
-race \
.
clean:
@git clean -f -d -X

Loading…
Cancel
Save