Skip to content

Commit

Permalink
try suggestions from pytest-qt plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jborbely committed Feb 4, 2020
1 parent 53cd7b3 commit 0335e54
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,23 @@ before_install:
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
sudo apt update
sudo apt install libdbus-1-3 libxkbcommon-x11-0 -y
sudo apt install xvfb herbstluftwm -y
fi
install:
- "export DISPLAY=:99.0"
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX +render -noreset"
- sleep 3
- python --version
- python -m pip install --upgrade pip
- python -m pip install --upgrade setuptools wheel
- python -m pip install PySide2
- python -m pip install pytest-xvfb
- python -c "from PySide2.QtWidgets import QApplication; QApplication([])"

before_script:
- "herbstluftwm &"
- sleep 1

script:
- python setup.py tests

0 comments on commit 0335e54

Please sign in to comment.