mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 11:48:43 -07:00
Since we have never released with goreleaser and GO111MODULE=on and have removed vendor directory, we are going to push a v2.7.0-rc1 tag. If the goreleaser process works fine and submit the draft release correctly, we will not do an actual v2.7.0-rc1 release. Instead, we will follow up immediately with the v2.7.0 tag and the proper release. Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
24 lines
936 B
Bash
Executable File
24 lines
936 B
Bash
Executable File
#!/bin/bash -e
|
|
# Run from directory above via ./scripts/cov.sh
|
|
|
|
export GO111MODULE="on"
|
|
|
|
go get github.com/mattn/goveralls
|
|
go get github.com/wadey/gocovmerge
|
|
|
|
rm -rf ./cov
|
|
mkdir cov
|
|
go test -v -failfast -covermode=atomic -coverprofile=./cov/conf.out -run='Test[^NoRace]' ./conf -timeout=20m
|
|
go test -v -failfast -covermode=atomic -coverprofile=./cov/log.out -run='Test[^NoRace]' ./logger -timeout=20m
|
|
go test -v -failfast -covermode=atomic -coverprofile=./cov/server.out -run='Test[^NoRace]' ./server -timeout=20m
|
|
go test -v -failfast -covermode=atomic -coverprofile=./cov/test.out -coverpkg=./server -run='Test[^NoRace]' ./test -timeout=20m
|
|
gocovmerge ./cov/*.out > acc.out
|
|
rm -rf ./cov
|
|
|
|
# Without argument, launch browser results. We are going to push to coveralls only
|
|
# from Travis.yml and after success of the build (and result of pushing will not affect
|
|
# build result).
|
|
if [[ $1 == "" ]]; then
|
|
go tool cover -html=acc.out
|
|
fi
|