Skip to content

Commit

Permalink
add .travis.yml and upload the test coverage to codecov.io
Browse files Browse the repository at this point in the history
  • Loading branch information
haoel authored and xxx7xxxx committed Jul 15, 2021
1 parent 497b332 commit 4629731
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: go
go:
- 1.16.x
env:
- GO111MODULE=on
script:
- make test TEST_FLAGS="-race -coverprofile=coverage.txt -covermode=atomic"
after_success:
- bash <(curl -s https://codecov.io/bash)
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ test:
go mod tidy
git diff --exit-code go.mod go.sum
go mod verify
go test -v ./...
go test -v ./... ${TEST_FLAGS}

clean:
rm -rf ${RELEASE_DIR}
Expand Down

0 comments on commit 4629731

Please sign in to comment.