Start boulder for tox when needed.

This commit is contained in:
Brad Warren 2019-01-07 16:19:44 -08:00
parent 1ad092d715
commit 82f994b23e

View file

@ -57,7 +57,10 @@ matrix:
before_install:
addons:
- python: "2.7"
env: TOXENV=apacheconftest
env:
- ACME_SERVER_URI="http://localhost:4000/directory"
- BOULDER_FOR_TOX=1
- TOXENV=apacheconftest
sudo: required
- python: "2.7"
env: TOXENV=nginxroundtrip
@ -92,8 +95,10 @@ addons:
install: "travis_retry $(command -v pip || command -v pip3) install codecov tox"
script:
- '[ -z "${BOULDER_FOR_TOX+x}" ] || travis_retry tests/boulder-fetch.sh'
- travis_retry tox
- '[ -z "${BOULDER_INTEGRATION+x}" ] || (travis_retry tests/boulder-fetch.sh && tests/tox-boulder-integration.sh)'
# If BOULDER_INTEGRATION is set, run integration tests. If BOULDER_FOR_TOX isn't set, we still need to start boulder.
- '[ -z "${BOULDER_INTEGRATION+x}" ] || ( ( [ -n "${BOULDER_FOR_TOX+x}" ] || travis_retry tests/boulder-fetch.sh ) && tests/tox-boulder-integration.sh)'
after_success: '[ "$TOXENV" == "py27-cover" ] && codecov'