Skip to content

Commit

Permalink
👷 updated docker compose command
Browse files Browse the repository at this point in the history
  • Loading branch information
AR-RIFAT committed Aug 6, 2024
1 parent b9d33b6 commit cfc5601
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions playwright/scripts/run-playwright-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ test_needs_build=$([[ $PYPROJECT_TOML_MODIFIED -gt $LAST_BUILD_TIME ]] && echo "

if [[ $web_needs_build == "true" && $test_needs_build == "true" ]]; then
echo "Running docker build..."
docker-compose -f playwright/docker-compose.yml build
docker compose -f playwright/docker-compose.yml build
elif [[ $web_needs_build == "true" ]]; then
echo "Rebuilding aodn-portal-v2..."
docker-compose -f playwright/docker-compose.yml build web
docker compose -f playwright/docker-compose.yml build web
elif [[ $test_needs_build == "true" ]]; then
echo "Rebuilding playwright test suite..."
docker-compose -f playwright/docker-compose.yml build tests
docker compose -f playwright/docker-compose.yml build tests
else
echo "Running docker-compose"
fi

touch playwright/.docker_build_time

docker-compose -f playwright/docker-compose.yml up --abort-on-container-exit --exit-code-from tests
docker compose -f playwright/docker-compose.yml up --abort-on-container-exit --exit-code-from tests

0 comments on commit cfc5601

Please sign in to comment.