Skip to content

Commit

Permalink
test: update docker compose commands
Browse files Browse the repository at this point in the history
Signed-off-by: Rueian <[email protected]>
  • Loading branch information
rueian committed Aug 11, 2024
1 parent 9c25a9e commit b828f5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dockertest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ go install honnef.co/go/tools/cmd/staticcheck@latest
# -U1000 unused check in mock package
staticcheck -checks "all,-ST1000,-ST1003,-ST1012,-ST1016,-ST1020,-ST1021,-U1000" ./... | (grep -v "_test.go:" && exit 1 || exit 0)

trap "docker-compose down -v" EXIT
docker-compose up -d
trap "docker compose down -v" EXIT
docker compose up -d
sleep 5
go install gotest.tools/[email protected]
gotestsum --format standard-verbose --junitfile unit-tests.xml -- -coverprofile=coverage.out -race -timeout 30m "$@"

0 comments on commit b828f5d

Please sign in to comment.