Skip to content

Commit

Permalink
fix(build): add missing targets, put coverage in subdir
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Apr 11, 2020
1 parent ed20c42 commit 31f2571
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
# go output
togo

# go vendor
vendor/
bin/
out/
17 changes: 15 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ go-clean:
go clean -x

go-test: go-build
go test ${BUILD_OPTS} -cover ./...
go test ${BUILD_OPTS} -cover -coverprofile=out/cover.out ./...
go tool cover -html=out/cover.out -o=out/cover.html
go tool cover -func=out/cover.out

git-push:
git push github
Expand Down Expand Up @@ -38,4 +40,15 @@ bundle-all:

bundle-clean:
rm -v ./bin/hashes || true
rm -v ./bin/togo-* || true
rm -v ./bin/togo-* || true

upload-climate:
cc-test-reporter after-build \
--debug \
-r "$(shell echo "${CODECLIMATE_SECRET}" | base64 -d)" \
-t gocov

upload-codecov:
codecov --disable=gcov \
--file=out/cover.out \
--token=$(shell echo "${CODECOV_SECRET}" | base64 -d)

0 comments on commit 31f2571

Please sign in to comment.