Skip to content

Commit

Permalink
re-enable coveralls, bump goveralls to 0.0.11 (#554)
Browse files Browse the repository at this point in the history
* re-enable coveralls, bump goveralls to 0.0.11

* start tests sooner, no need to wait till build-binaries is done

* update to golangci/golangci-lint:v1.42.1-alpine, break out coveralls step
  • Loading branch information
oliver006 authored Oct 14, 2021
1 parent 97bda44 commit d1324b1
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 26 deletions.
66 changes: 41 additions & 25 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,21 +98,6 @@ steps:
depends_on:
- start

- name: build-binaries
image: "golang:1.17"
pull: always
environment:
GO111MODULE: on
LOG_LEVEL: "info"
commands:
- make build-binaries
when:
event:
- pull_request
- push
- tag
depends_on:
- start

- name: test-docker-build
image: plugins/docker
Expand All @@ -139,11 +124,11 @@ steps:
- start

- name: lint
image: golangci/golangci-lint@sha256:39e13a431c69fca37f88ab4b2340655eef7d7d18373df10d5e737f0b77866747
image: golangci/golangci-lint:v1.42.1-alpine
pull: always
commands:
- apk add --update make
- make lint
- golangci-lint run --tests=false --exclude-use-default
- golangci-lint run -D=errcheck --exclude-use-default
when:
event:
- pull_request
Expand All @@ -158,22 +143,17 @@ steps:
environment:
GO111MODULE: on
LOG_LEVEL: "info"
COVERALLS_TOKEN:
from_secret: coveralls-token
commands:
- sleep 5
- sleep 15
- make checks
- make test
# coveralls seems to have issues right now
# https://github.com/lemurheavy/coveralls-public/issues/1573
# - make upload-coverage
when:
event:
- pull_request
- push
- tag
depends_on:
- build-binaries
- start


- name: mixins
Expand Down Expand Up @@ -207,6 +187,42 @@ steps:
- tests


- name: upload-coveralls
image: "golang:1.17"
pull: always
environment:
GO111MODULE: on
LOG_LEVEL: "info"
COVERALLS_TOKEN:
from_secret: coveralls-token
commands:
- make upload-coverage
when:
event:
- pull_request
- push
- tag
depends_on:
- tests


- name: build-binaries
image: "golang:1.17"
pull: always
environment:
GO111MODULE: on
LOG_LEVEL: "info"
commands:
- make build-binaries
when:
event:
- pull_request
- push
- tag
depends_on:
- tests


- name: release-docker-image-scratch
image: plugins/docker
settings:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ mixin:

.PHONY: upload-coverage
upload-coverage:
go install github.com/mattn/[email protected].9
go install github.com/mattn/[email protected].11
/go/bin/goveralls -coverprofile=coverage.txt -service=drone.io


Expand Down

0 comments on commit d1324b1

Please sign in to comment.