Skip to content

Commit

Permalink
Codecov integration
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Chiu <[email protected]>
  • Loading branch information
yangchiu authored and innobead committed Aug 18, 2022
1 parent d7d200b commit feb8809
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ steps:
- name: socket
path: /var/run/docker.sock

- name: codecov
image: robertstettner/drone-codecov
settings:
token:
from_secret: CODECOV_TOKEN
debug: true

- name: fossa
image: registry.suse.com/suse/sle15:15.3.17.8.1
failure: ignore
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.dapper
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN wget -O - https://storage.googleapis.com/golang/go1.17.10.linux-${!GOLANG_AR
go get -u golang.org/x/lint/golint

ENV DAPPER_SOURCE /go/src/github.com/longhorn/longhorn-manager
ENV DAPPER_OUTPUT ./bin
ENV DAPPER_OUTPUT ./bin coverage.out
ENV DAPPER_DOCKER_SOCKET true
ENV DAPPER_ENV IMAGE REPO VERSION TAG
ENV DAPPER_RUN_ARGS --privileged --tmpfs /go/src/github.com/longhorn/longhorn/integration/.venv:exec --tmpfs /go/src/github.com/longhorn/longhorn/integration/.tox:exec -v /dev:/host/dev
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cd $(dirname $0)

./build
./validate
./test -cover
./test -coverprofile=coverage.out
./package

image=`cat ../bin/latest_image`
Expand Down

0 comments on commit feb8809

Please sign in to comment.