Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add codecov #190

Merged
merged 1 commit into from
Nov 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ dist

# Ignore -packr generated files
**-packr.go

coverage.txt
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ script:
jobs:
include:
- stage: check
script: make
script:
- make
- bash <(curl -s https://codecov.io/bash)
- stage: check
script:
- snyk monitor --org=czi
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ build: packr ## build the binary
coverage: ## run the go coverage tool, reading file coverage.out
go tool cover -html=coverage.out

test: packr ## run the tests
gotest -cover ./...
test: ## run the tests
gotest -race -coverprofile=coverage.txt -covermode=atomic ./...

install: packr ## install the fogg binary in $GOPATH/bin
go install ${LDFLAGS} .
Expand Down