Bläddra i källkod

Longer buildWait on Travis

Kevin van Zonneveld 9 år sedan
förälder
incheckning
94f1982ae6
1 ändrade filer med 8 tillägg och 2 borttagningar
  1. 8 2
      bin/bootandkill-servers

+ 8 - 2
bin/bootandkill-servers

@@ -85,8 +85,14 @@ waitForPortOpen 8080
 echo "[${__base}] --> Running acceptance tests"
 
 
-echo "[${__base}] --> Sleeping 20s, because the port may be open, but Hexo may still be injecting/building stuff"
+buildWait=20
+if [ "${TRAVIS}" = "true" ]; then
+  buildWait=60
+  echo "Increasing build wait because Travis has no Hexo build cache"
+fi
+
+echo "[${__base}] --> Sleeping ${buildWait}s, because the port may be open, but Hexo may still be injecting/building stuff"
 echo "[${__base}] --> and I don't know yet how to check for that"
-sleep 20
+sleep ${buildWait}
 
 ${@}