diff --git a/.travis.yml b/.travis.yml index e93ae5c69..f1f388fbd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,6 +40,7 @@ env: - RUN="integration" BOULDER_CONFIG_DIR="test/config-next" - RUN="unit" - RUN="unit-next" BOULDER_CONFIG_DIR="test/config-next" + - RUN="start" # gomod-vendor runs with a separate container because it needs to fetch # packages from GitHub et. al., which is incompatible with the DNS server # override in the boulder container (used for service discovery). diff --git a/test.sh b/test.sh index c316d102a..416876a6a 100755 --- a/test.sh +++ b/test.sh @@ -115,6 +115,19 @@ if [[ "$RUN" =~ "integration" ]] ; then python2 test/integration-test.py "${args[@]}" fi +# Test that just ./start.py works, which is a proxy for testing that +# `docker-compose up` works, since that just runs start.py (via entrypoint.sh). +if [[ "$RUN" =~ "start" ]] ; then + ./start.py & + for I in $(seq 1 100); do + sleep 1 + curl http://localhost:4000/directory && break + done + if [[ $I = 100 ]]; then + echo "Boulder did not come up after ./start.py." + fi +fi + # Run go mod vendor (happens only in Travis) to check that the versions in # vendor/ really exist in the remote repo and match what we have. if [[ "$RUN" =~ "gomod-vendor" ]] ; then