diff --git a/contrib/ci.sh b/contrib/ci.sh
index c1c2f3e5916308891f6319fc023c55c1288a29a5..597d86f3510bd2b443d2f158c96ad3446c8aba8a 100755
--- a/contrib/ci.sh
+++ b/contrib/ci.sh
@@ -4,9 +4,11 @@ set -e
 
 ./deploy_stack.sh --no-auth
 
-docker service update func_gateway --image=openfaas/gateway:latest-dev
-
-docker service ps --no-trunc func_gateway
+# The timeout is required on Travis due to some tasks not starting in
+# time and being deemed to have failed.
+docker service update func_gateway --image=openfaas/gateway:latest-dev \
+  --update-failure-action=continue \
+  --update-monitor=20s
 
 # Script makes sure OpenFaaS API gateway is ready before running tests
 wait_success=false