Skip to content

Commit

Permalink
Restart xvfb before tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Insoleet committed Apr 3, 2016
1 parent 1ed8f80 commit 0c51f44
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ci/travis/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

if [ $TRAVIS_OS_NAME == "linux" ]
then
export XVFBARGS="-screen 0 1280x1024x24"
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb restart
sleep 3
fi

cd $HOME/build/ucoin-io/sakia
pyenv activate sakia-env
coverage run --source=sakia.core,sakia.gui,sakia.models setup.py test
Expand Down

0 comments on commit 0c51f44

Please sign in to comment.