forked from BoboTiG/python-mss
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
38 lines (31 loc) · 793 Bytes
/
.travis.yml
File metadata and controls
38 lines (31 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
language: python
python:
- 2.7
- 3.5
- 3.6
- nightly # currently points to 3.8-dev
# Enable 3.7 without globally enabling sudo and dist: xenial for other build jobs
matrix:
include:
- python: 3.7
dist: xenial
sudo: true
addons:
apt:
packages:
- xpra
- xserver-xorg-video-dummy
before_install:
- xpra --xvfb="Xorg +extension RANDR -config `pwd`/tests/res/dummy.xorg.conf -logfile ${HOME}/.xpra/xorg.log" start :42
env:
- DISPLAY=":42"
install:
- python -m pip install flake8 numpy pillow sphinx
- python -m pip install -e .
script:
- python -m pytest --display=":42.0" tests
- python -m flake8 .
- if [[ $TRAVIS_PYTHON_VERSION > '2.8' ]]; then cd docs && make clean html; fi
after_script:
- xpra stop :42
- cat ~/.xpra/*.log