Skip to content
Snippets Groups Projects
Commit 4af66e65 authored by Steve Azzopardi's avatar Steve Azzopardi
Browse files

Merge branch 'sh-drop-goveralls-dependency' into 'main'

Drop goveralls dependency

See merge request gitlab-org/ci-cd/docker-machine!79
parents dac65f58 1c762177
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
RUN go get golang.org/x/lint/golint \
github.com/mattn/goveralls \
golang.org/x/tools/cover
ENV USER root
......
......@@ -9,18 +9,9 @@ COVERAGE_PROFILE := $(COVERAGE_OUTPUT)/profile.out
COVERAGE_HTML := $(COVERAGE_OUTPUT)/index.html
COVERAGE_MODE := set
# Goveralls dependency
GOVERALLS_BIN := $(GOPATH)/bin/goveralls
GOVERALLS := $(shell [ -x $(GOVERALLS_BIN) ] && echo $(GOVERALLS_BIN) || echo '')
# Generate coverage
coverage-generate: $(COVERAGE_PROFILE)
# Send the results to coveralls
coverage-send: $(COVERAGE_PROFILE)
$(if $(GOVERALLS), , $(error Please install goveralls: go get github.com/mattn/goveralls))
@$(GOVERALLS) -service travis-ci -coverprofile="$(COVERAGE_PROFILE)"
# Generate html report
coverage-html: $(COVERAGE_HTML)
@open "$(COVERAGE_HTML)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment