mirror of
https://github.com/Forceu/Gokapi.git
synced 2026-05-01 20:10:41 -05:00
15 lines
603 B
Bash
15 lines
603 B
Bash
#!/bin/sh
|
|
cd ..
|
|
go test ./... -parallel 8 --tags=test,awsmock
|
|
go test ./... -parallel 8 --tags=test,noaws
|
|
go test ./... -parallel 8 --tags=test,integration,noaws -coverprofile=/tmp/coverage1.out
|
|
GOKAPI_AWS_BUCKET="gokapi" GOKAPI_AWS_REGION="eu-central-1" GOKAPI_AWS_KEY="keyid" GOKAPI_AWS_KEY_SECRET="secret" go test ./... -parallel 8 -coverprofile=/tmp/coverage2.out --tags=test,awstest
|
|
|
|
which gocovmerge > /dev/null
|
|
if [ $? -eq 0 ]; then
|
|
gocovmerge /tmp/coverage1.out /tmp/coverage2.out > /tmp/coverage.out
|
|
go tool cover -html=/tmp/coverage.out
|
|
else
|
|
go tool cover -html=/tmp/coverage2.out
|
|
fi
|