File tree Expand file tree Collapse file tree 1 file changed +27
-21
lines changed Expand file tree Collapse file tree 1 file changed +27
-21
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,20 @@ python:
12
12
- " 3.7"
13
13
- " 3.8-dev"
14
14
15
+
16
+ _pure : &pure
17
+ install :
18
+ - pip install -U pip
19
+ - pip install -U pytest pytest-cov codecov
20
+ - pip install .
21
+ script :
22
+ - pytest --cov=msgpack -v test
23
+
15
24
matrix :
16
25
include :
17
26
- name : Black
18
27
language : python
19
- python : 3.8
28
+ python : 3.7
20
29
install :
21
30
- pip install black
22
31
script :
@@ -35,38 +44,35 @@ matrix:
35
44
- docker pull $DOCKER_IMAGE
36
45
script :
37
46
- docker run --rm -v `pwd`:/io -w /io $DOCKER_IMAGE /io/docker/runtests.sh
47
+
48
+ - name : " Python 2 (fallback)"
49
+ python : " 2.7"
50
+ << : *pure
51
+
38
52
- name : " pypy2.7"
39
53
python : " pypy2.7-7.1.1"
40
- install :
41
- - pip install -e .
42
- script :
43
- - py.test -v test
54
+ << : *pure
55
+
44
56
- name : " pypy3"
45
57
python : " pypy3.6-7.1.1"
46
- install :
47
- - pip install -e .
48
- script :
49
- - pytest -v test
50
- - name : " Python 2 (fallback)"
51
- python : " 2.7"
52
- install :
53
- - pip install -U pip
54
- - pip install -U pytest
55
- - pip install .
56
- script :
57
- - pytest -v test
58
+ << : *pure
58
59
59
60
install :
60
61
- pip install -U pip
61
- - pip install -U pytest
62
- - pip install -r requirements.txt
62
+ - pip install -U pytest pytest-cov codecov
63
+ - pip install -r requirements.txt # Cython
63
64
- make cython
64
65
- pip install -e .
65
66
66
67
script :
67
68
- python -c 'import sys; print(hex(sys.maxsize))'
68
69
- python -c 'from msgpack import _cmsgpack'
69
- - pytest -v test
70
- - MSGPACK_PUREPYTHON=x pytest -v test
70
+ - pytest --cov=msgpack -v test
71
+ - MSGPACK_PUREPYTHON=x pytest --cov=msgpack -v test
72
+
73
+ after_success :
74
+ - if [ -f .coverage ]; then
75
+ codecov;
76
+ fi
71
77
72
78
# vim: sw=2 ts=2
You can’t perform that action at this time.
0 commit comments