Skip to content

Commit

Permalink
feat: send coveralls data (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfalkowski authored Apr 11, 2023
1 parent 1275baf commit aa5cf25
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build/make/go.mak
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ html-coverage: remove-generated-coverage
func-coverage: remove-generated-coverage
go tool cover -func test/final.cov

# Send coveralls data.
goveralls: remove-generated-coverage
goveralls -coverprofile=test/final.cov -service=circle-ci -repotoken=${COVERALLS_REPO_TOKEN}

# Run security checks.
sec:
bin/build/sec/go
Expand All @@ -48,3 +52,11 @@ update-dep: get tidy vendor

# Update all go dep.
update-all-deps: get-all tidy vendor

# Start the environment.
start:
bin/build/docker/env start

# Stop the environment.
stop:
bin/build/docker/env stop
23 changes: 23 additions & 0 deletions build/make/service.mak
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,21 @@ proto-generate:
# Fix the lint issues in the code (if possible).
fix-lint: go-fix-lint ruby-fix-lint proto-format

sanitize-coverage:
bin/quality/go/cov

# Get the HTML coverage for go.
html-coverage: sanitize-coverage
go tool cover -html test/reports/final.cov

# Get the func coverage for go.
func-coverage: sanitize-coverage
go tool cover -func test/reports/final.cov

# Send coveralls data.
goveralls: sanitize-coverage
goveralls -coverprofile=test/reports/final.cov -service=circle-ci -repotoken=${COVERALLS_REPO_TOKEN}

# Run all the features.
features: build-test
make -C test features
Expand Down Expand Up @@ -106,3 +121,11 @@ go-sec:

# Run security checks.
sec: go-sec

# Start the environment.
start:
bin/build/docker/env start

# Stop the environment.
stop:
bin/build/docker/env stop

0 comments on commit aa5cf25

Please sign in to comment.