Skip to content

Commit

Permalink
Add CodeGov (flyteorg#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
EngHabu authored Feb 13, 2020
1 parent 350dca4 commit d6402ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion flytepropeller/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
- stage: test
name: unit tests
install: make install
script: make test_unit
script: make test_unit_codecov
8 changes: 6 additions & 2 deletions flytepropeller/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ linux_compile:
.PHONY: compile
compile:
mkdir -p ./bin
go build -o bin/flytepropeller ./cmd/controller/main.go
go build -o bin/flytepropeller ./cmd/controller/main.go
go build -o bin/kubectl-flyte ./cmd/kubectl-flyte/main.go && cp bin/kubectl-flyte ${GOPATH}/bin

cross_compile:
Expand All @@ -27,7 +27,7 @@ op_code_generate:
@RESOURCE_NAME=flyteworkflow OPERATOR_PKG=github.com/lyft/flytepropeller ./hack/update-codegen.sh

benchmark:
mkdir -p ./bin/benchmark
mkdir -p ./bin/benchmark
@go test -run=^$ -bench=. -cpuprofile=cpu.out -memprofile=mem.out ./pkg/controller/nodes/. && mv *.out ./bin/benchmark/ && mv *.test ./bin/benchmark/

# server starts the service in development mode
Expand All @@ -42,3 +42,7 @@ clean:
golden:
go test ./cmd/kubectl-flyte/cmd -update
go test ./pkg/compiler/test -update

.PHONY: test_unit_codecov
test_unit_codecov:
go test ./... -race -coverprofile=coverage.txt -covermode=atomic; curl -s https://codecov.io/bash > codecov_bash.sh; bash codecov_bash.sh

0 comments on commit d6402ca

Please sign in to comment.