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 13, 2025
1 parent 1deeea0 commit 94f9cad
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/oxid-esales/cypress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ NC='\033[0m' # No Color

function start_services() {
echo "Starting application services with Docker Compose..."
docker-compose up -d
docker compose up -d

echo "Waiting for application services to initialize..."
docker-compose ps
docker compose ps

echo "Verifying application network..."
network_name=$(docker inspect $(docker-compose ps -q) --format '{{range .NetworkSettings.Networks}}{{.NetworkID}}{{end}}' | head -n 1)
network_name=$(docker inspect $(docker compose ps -q) --format '{{range .NetworkSettings.Networks}}{{.NetworkID}}{{end}}' | head -n 1)
if [ -z "$network_name" ]; then
echo -e "${RED}Could not find the application network. Ensure Docker Compose is configured correctly.${NC}"
exit 1
Expand Down Expand Up @@ -76,10 +76,10 @@ function debug_application() {
echo -e "${RED}Debugging application services and containers:${NC}"

echo "Docker Compose services status:"
docker-compose ps
docker compose ps

echo "Docker Compose logs:"
docker-compose logs
docker compose logs

echo "Inspecting network and connectivity:"
echo "Application network: $network_name"
Expand All @@ -97,7 +97,7 @@ function cleanup() {
docker rm -f cypress-container || echo "Cypress container already removed."

echo "Stopping Docker Compose services..."
docker-compose down || echo "Docker Compose services already stopped."
docker compose down || echo "Docker Compose services already stopped."
}

# Main script execution
Expand Down

0 comments on commit 94f9cad

Please sign in to comment.