From 0c51f44b9f5ba374da42dfb399370fe60176401a Mon Sep 17 00:00:00 2001 From: inso <insomniak.fr@gmaiL.com> Date: Sun, 3 Apr 2016 23:25:55 +0200 Subject: [PATCH] Restart xvfb before tests --- ci/travis/test.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ci/travis/test.sh b/ci/travis/test.sh index 06a88945..636cff73 100755 --- a/ci/travis/test.sh +++ b/ci/travis/test.sh @@ -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 -- GitLab