Create databases in travis

This commit is contained in:
Brad Warren 2015-08-13 12:24:34 -07:00
parent 2b33dd42e8
commit f39e6c672d
2 changed files with 11 additions and 6 deletions

View file

@ -1,11 +1,5 @@
language: python
# make sure simplehttp simple verification works (custom /etc/hosts)
addons:
hosts:
- le.wtf
mariadb: "10.0"
services:
- rabbitmq
- mysql
@ -28,6 +22,12 @@ env:
- TOXENV=lint
- TOXENV=cover
# make sure simplehttp simple verification works (custom /etc/hosts)
addons:
hosts:
- le.wtf
mariadb: "10.0"
install: "travis_retry pip install tox coveralls"
before_script: '[ "xxx$BOULDER_INTEGRATION" = "xxx" ] || ./tests/boulder-start.sh'
script: 'travis_retry tox && ([ "xxx$BOULDER_INTEGRATION" = "xxx" ] || (source .tox/$TOXENV/bin/activate && ./tests/boulder-integration.sh))'

View file

@ -5,5 +5,10 @@ export GOPATH="${GOPATH:-/tmp/go}"
go get -d github.com/letsencrypt/boulder
cd $GOPATH/src/github.com/letsencrypt/boulder
if [ "${TRAVIS}" == "true" ]; then
./test/create_db.sh || die "unable to create the boulder database with test/create_db.sh"
fi
./start.py &
# Hopefully start.py bootstraps before integration test is started...