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 <rueiancsie@gmail.com>
  • Loading branch information
rueian committed Aug 5, 2024
1 parent bc36ea2 commit 31b6b8e
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/gotestsum@v1.10.0
gotestsum --format standard-verbose --junitfile unit-tests.xml -- -coverprofile=coverage.out -race -timeout 30m "$@"

0 comments on commit 31b6b8e

Please sign in to comment.