#!/bin/bash

set -eux

pip install -e .

rm ~/.birdseye_test.db || true

export BIRDSEYE_SERVER_RUNNING=true

gunicorn -b 127.0.0.1:7777 birdseye.server:app &
sleep 3

set +e

python setup.py test
result=$?
kill $(ps aux | grep birdseye.server:app | grep -v grep | awk '{print $2}')
exit ${result}

#!/bin/bash

set -eux

pip install -e .

rm ~/.birdseye_test.db || true

export BIRDSEYE_SERVER_RUNNING=true
export BIRDSEYE_DB=sqlite:///$HOME/.birdseye_test.db
gunicorn -b 127.0.0.1:7777 birdseye.server:app &
sleep 1

set +e

python setup.py test
result=$?
kill $(ps aux | grep birdseye.server:app | grep -v grep | awk '{print $2}')
exit ${result}

Set database location when running server in travis test
Set database location when running server in travis test
