updating CI process + tests for code coverage

This commit is contained in:
Julien Neuhart
2019-08-20 12:06:08 +02:00
parent 09d07e4890
commit bb6a3471d5
5 changed files with 26 additions and 5 deletions

View File

@@ -14,4 +14,8 @@ fi
go run github.com/thecodingmachine/gotenberg/test/cmd/pm2
# Run our tests.
go test -race -cover ./...
if [ "$CODE_COVERAGE" = "1" ]; then
go test -race -coverprofile=coverage.txt -covermode=atomic ./...
else
go test -race -cover ./...
fi