Commit e2264d13 authored by masala's avatar masala

add coverage report

parent f26c00ba
Pipeline #902 failed with stage
in 34 minutes and 41 seconds
......@@ -5,10 +5,19 @@ before_script:
- cp -r /builds/katzenpost/* /go/src/github.com/katzenpost/
- cd /go/src/github.com/katzenpost/authority
- go get -v -t ./...
- cd /builds/katzenpost/authority/
test-authority:
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/...
- mkdir -p coverage
- 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/
......@@ -15,4 +15,4 @@ 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 -cover -coverpkg ./... -v -race -timeout 0 -ldflags "-X github.com/katzenpost/core/epochtime.WarpedEpoch=true -X github.com/katzenpost/server/internal/pki.WarpedEpoch=true" ./tests/...
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