mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Update .travis.yml
Start the xvfb service
This commit is contained in:
parent
4eb6c730ac
commit
6dfe6a8af8
11
.travis.yml
11
.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"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user