Add codecov (#83)

This commit is contained in:
Hidetake Iwata
2019-05-18 09:45:37 +09:00
committed by GitHub
parent 3f2e84a1ea
commit e133ea8541
3 changed files with 7 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ jobs:
# workaround for https://github.com/golang/go/issues/27925 # workaround for https://github.com/golang/go/issues/27925
- run: sed -e '/^k8s.io\/client-go /d' -i go.sum - run: sed -e '/^k8s.io\/client-go /d' -i go.sum
- run: make check - run: make check
- run: bash <(curl -s https://codecov.io/bash)
- run: make run - run: make run
- run: | - run: |
if [ "$CIRCLE_TAG" ]; then if [ "$CIRCLE_TAG" ]; then

6
.gitignore vendored
View File

@@ -1,5 +1,9 @@
/.idea /.idea
/.kubeconfig*
/dist /dist
/coverage.out
/kubelogin /kubelogin
/kubectl-oidc_login /kubectl-oidc_login
/.kubeconfig*

View File

@@ -10,7 +10,7 @@ all: $(TARGET)
check: check:
golangci-lint run golangci-lint run
$(MAKE) -C adaptors_test/keys/testdata $(MAKE) -C adaptors_test/keys/testdata
go test -v -race ./... go test -v -race -cover -coverprofile=coverage.out ./...
$(TARGET): $(wildcard *.go) $(TARGET): $(wildcard *.go)
go build -o $@ -ldflags "$(LDFLAGS)" go build -o $@ -ldflags "$(LDFLAGS)"