diff --git a/README.md b/README.md index c0cc3f0..7f649e2 100644 --- a/README.md +++ b/README.md @@ -32,10 +32,14 @@ Run Cypress locally, using the current development containers: Run Cypress in container, create brand-new containers along with it: - docker compose -f docker-compose.testing.yml run cypress + ./docker-scripts.sh test + + # or with building + + ./docker-scripts.sh test --build # tearing off the containers - docker compose -f docker-compose.testing.yml down + ./docker-scripts.sh down ### Deployment diff --git a/docker-scripts.sh b/docker-scripts.sh index 88604d1..2e78861 100755 --- a/docker-scripts.sh +++ b/docker-scripts.sh @@ -18,4 +18,15 @@ clean() { docker rm -f $containers } +test() { + if [ "$1" = "--build"]; then + docker compose -f docker-compose.testing.yml build + fi + docker compose -f docker-compose.testing.yml run --rm cypress +} + +down() { + docker compose -f docker-compose.testing.yml down +} + $@ \ No newline at end of file