From 6dfe6a8af88f4c866e0bee6391ec6784df9fe0b8 Mon Sep 17 00:00:00 2001 From: Axel Date: Tue, 24 May 2016 11:49:30 +0200 Subject: [PATCH] Update .travis.yml Start the xvfb service --- .travis.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index dcf4ba90a3..14112f92f8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,9 @@ language: python python: - 2.7 +addons: + firefox: "latest" + services: - docker @@ -13,9 +16,13 @@ before_install: install: - docker run --rm -t -v "$TRAVIS_BUILD_DIR:/tmp/pandorafms" -p 80:80 pandorafms/pandorafms-base /tmp/pandorafms/tests/test.sh - pip install selenium PyVirtualDisplay + +before_script: + - "export DISPLAY=:99.0" + - "sh -e /etc/init.d/xvfb start" + - sleep 4 # give xvfb some time to start script: - python $TRAVIS_BUILD_DIR/tests/console/PAN1.py -addons: - firefox: "latest" +