Commit 9db6324c authored by masala's avatar masala

add coverage report

parent 3cd145ac
Pipeline #893 passed with stage
in 35 minutes and 26 seconds
......@@ -5,10 +5,18 @@ before_script:
- cp -r /builds/katzenpost/* /go/src/github.com/katzenpost/
- cd /go/src/github.com/katzenpost/authority
- go get -v -t ./...
- mkdir -p coverage
test-authority:
test-authority-internal:
script:
- go test -cover -v -race ./internal/...
- go test -cover -v -race ./voting/...
- go test -cover -v -race ./nonvoting/...
- go test -cover -v -race -timeout 0 -ldflags "-X github.com/katzenpost/core/epochtime.WarpedEpoch=true -X github.com/katzenpost/server/internal/pki.WarpedEpoch=true" ./tests/...
- go test -v -cover -coverprofile internal.cov -covermode atomic -coverpkg ./... -race ./internal/...
- go test -v -cover -coverprofile voting.cov -covermode atomic -coverpkg ./... -race ./voting/...
- go test -v -cover -coverprofile nonvoting.cov -covermode atomic -coverpkg ./... -race ./nonvoting/...
- go test -v -cover -coverprofile integration.cov -covermode atomic -coverpkg ./... -race -timeout 0 -ldflags "-X github.com/katzenpost/core/epochtime.WarpedEpoch=true -X github.com/katzenpost/server/internal/pki.WarpedEpoch=true" ./tests/...
- go tool cover -html=internal.cov -o coverage/internal.html
- go tool cover -html=voting.cov -o coverage/voting.html
- go tool cover -html=nonvoting.cov -o coverage/nonvoting.html
- go tool cover -html=integration.cov -o coverage/integration.html
artifacts:
paths:
- coverage/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment