CI: test that docker-compose up works. (#4287)

This commit is contained in:
Jacob Hoffman-Andrews 2019-06-25 06:42:29 -07:00 committed by Daniel McCarney
parent 24f150f8fc
commit 6560e8dea5
2 changed files with 14 additions and 0 deletions

View File

@ -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).

13
test.sh
View File

@ -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