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 to travis and repo #885

Merged
merged 1 commit into from
Aug 7, 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
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ before_script:
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
script:
- make out/skaffold test
- make coverage

after_success:
- bash <(curl -s https://codecov.io/bash)
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ install: $(GO_FILES) $(BUILD_DIR)
integration: install $(BUILD_DIR)/$(PROJECT)
go test -v -tags integration $(REPOPATH)/integration -timeout 10m --remote=$(REMOTE_INTEGRATION)

.PHONY: coverage
coverage: $(BUILD_DIR)
go test -coverprofile=$(BUILD_DIR)/coverage.txt -covermode=atomic ./...

.PHONY: release
release: cross docs $(BUILD_DIR)/VERSION
docker build \
Expand Down
2 changes: 2 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ image::skaffold.png[Skaffold, 222,93]
---
[caption="Build status", link="https://travis-ci.org/GoogleContainerTools/skaffold"]
image::https://travis-ci.org/GoogleContainerTools/skaffold.svg?branch=master[Build Status]
[caption="Code Coverage", link="https://codecov.io/gh/GoogleContainerTools/skaffold"]
image::https://codecov.io/gh/GoogleContainerTools/skaffold/branch/master/graph/badge.svg[Code Coverage]
//tag::intro[]


Expand Down