Skip to content

Commit

Permalink
TC-47 test cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniil Tkachev committed Jan 9, 2025
1 parent 1fc8384 commit 9bdfcba
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/oxid-esales/cypress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,20 @@ function add_network_to_services() {

function run_docker_compose_up() {
echo "Running docker-compose up..."
docker-compose config # Validate the YAML file
docker compose up --build -d apache php
cat docker-compose.yml
docker compose config # Validate the YAML file
docker compose exec -it cypress curl -I http://telecash-module-apache-1
docker compose up -d

echo "Waiting for services to start..."
sleep 10 # Adjust as needed

echo "Starting Cypress container..."
docker compose up --build -d cypress
# docker compose up --build -d cypress
docker ps

echo "Testing connectivity..."
if ! docker exec -it telecash-module-cypress-1 curl -I http://telecash-module-apache-1; then
if ! docker compose exec -it cypress curl -I http://telecash-module-apache-1; then
echo "Error: Unable to reach Apache from Cypress container."
exit 1
fi
Expand Down

0 comments on commit 9bdfcba

Please sign in to comment.