Commit f185eb0e authored by Abhishek's avatar Abhishek
Browse files

Update .gitlab-ci.yml file

parent 297beb9e
Pipeline #11828 failed with stage
in 1 minute and 48 seconds
...@@ -72,7 +72,20 @@ run_full_automation: ...@@ -72,7 +72,20 @@ run_full_automation:
echo "⚠️ Backend health endpoint not available, continuing anyway"; echo "⚠️ Backend health endpoint not available, continuing anyway";
fi fi
# 6. Run Moodle orchestration # Wait for Moodle to become live
- echo "▶️ Running Moodle automation..." - echo "⏳ Waiting for Moodle to be ready..."
- timeout=300
- until curl -s -f http://localhost >/dev/null; do
timeout=$((timeout - 5))
if [ $timeout -le 0 ]; then
echo "❌ Moodle did not become ready in 5 minutes"
exit 1
fi
echo " -> Moodle not ready yet, retrying in 5s..."
sleep 5
done
- echo "✅ Moodle is live"
# Now run the automation
- chmod +x test-moodle.sh - chmod +x test-moodle.sh
- ./test-moodle.sh - ./test-moodle.sh
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment