Skip to content

Commit

Permalink
chore(test.sh): update docker compose command
Browse files Browse the repository at this point in the history
  • Loading branch information
chillfox committed Aug 6, 2024
1 parent d30dd9f commit 9f9b073
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@ set -eu
# this function is called when Ctrl-C is sent
function trap_ctrlc ()
{
docker-compose down &> /dev/null
docker compose down &> /dev/null
exit 2
}

# initialise trap to call trap_ctrlc function
# when signal 2 (SIGINT) is received
trap "trap_ctrlc" 2

docker-compose pull
docker compose pull

docker-compose build
docker compose build

exit_code="0"

docker-compose run \
docker compose run \
--rm \
test "$@" \
|| exit_code="$?"

docker-compose down &> /dev/null
docker compose down &> /dev/null

exit ${exit_code}

0 comments on commit 9f9b073

Please sign in to comment.