File tree 3 files changed +16
-41
lines changed 3 files changed +16
-41
lines changed Original file line number Diff line number Diff line change 1
1
language : python
2
+ dist : xenial
3
+ sudo : true
2
4
3
5
matrix :
4
6
include :
5
7
- os : linux
6
8
python : " 2.7"
7
9
env :
8
10
- TOXENV=py27
9
- - DISPLAY=":42"
10
- dist : xenial
11
- sudo : true
12
11
- os : linux
13
12
python : " 3.5"
14
- env :
15
- - TOXENV=py35
16
- - DISPLAY=":42"
17
- dist : xenial
18
- sudo : true
13
+ env : TOXENV=py35
19
14
- os : linux
20
15
python : " 3.6"
21
- env :
22
- - TOXENV=py36
23
- - DISPLAY=":42"
24
- dist : xenial
25
- sudo : true
16
+ env : TOXENV=py36
26
17
- os : linux
27
18
python : " 3.7"
28
- env :
29
- - TOXENV=py37
30
- - DISPLAY=":42"
31
- dist : xenial
32
- sudo : true
33
- - os : linux
34
- python : " pypy"
35
- env :
36
- - TOXENV=pypy
37
- - DISPLAY=":42"
38
- dist : xenial
39
- sudo : true
19
+ env : TOXENV=py37
40
20
- os : linux
41
21
python : " pypy3.5"
42
- env :
43
- - TOXENV=pypy3
44
- - DISPLAY=":42"
45
- dist : xenial
46
- sudo : true
22
+ env : TOXENV=pypy3
47
23
- os : osx
48
24
language : generic
49
25
env :
@@ -54,24 +30,20 @@ matrix:
54
30
env :
55
31
- PYTHON_VERSION=3.7
56
32
- TOXENV=py37
57
- allow_failures :
58
- - python : pypy
59
- - python : pypy3.5
60
33
61
34
addons :
62
35
apt :
63
36
packages :
64
37
- lsof
65
38
39
+ services :
40
+ - xvfb
41
+
66
42
before_install :
67
43
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then bash .travis/install.sh; fi
68
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- $DISPLAY -ac -screen 0 1280x1024x24; fi
69
44
70
45
install :
71
46
- python -m pip install --upgrade pip tox
72
47
73
- before_script :
74
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh -e /etc/init.d/xvfb start; fi
75
-
76
48
script :
77
- - tox
49
+ - tox
Original file line number Diff line number Diff line change 21
21
except NameError :
22
22
TEXT = str # Python 3
23
23
PY3 = sys .version [0 ] > "2"
24
+ PYPY = platform .python_implementation () == "PyPy"
24
25
25
26
27
+ @pytest .mark .skipif (PYPY , reason = "Failure on PyPy" )
26
28
def test_factory_systems (monkeypatch ):
27
29
"""
28
30
Here, we are testing all systems.
@@ -72,6 +74,7 @@ def test_arg_display(monkeypatch):
72
74
monkeypatch .undo ()
73
75
74
76
77
+ @pytest .mark .skipif (PYPY , reason = "Failure on PyPy" )
75
78
def test_bad_display_structure (monkeypatch ):
76
79
import mss .linux
77
80
Original file line number Diff line number Diff line change @@ -8,14 +8,14 @@ alwayscopy = True
8
8
deps =
9
9
pytest>=4.0.2
10
10
flake8>=3.6.0
11
- numpy> =1.15.4
11
+ numpy = =1.15.4
12
12
py37: pillow>=5.4.0
13
13
commands =
14
14
python -m pytest {posargs}
15
- python -m flake8 docs mss tests
15
+ py3{7,6,5,}: python -m flake8 docs mss tests
16
16
17
17
[testenv:docs]
18
- description = invoke sphinx- build to build the HTML docs
18
+ description = build the documentation
19
19
basepython = python3.7
20
20
deps = sphinx
21
21
commands =
You can’t perform that action at this time.
0 commit comments