Skip to content

Commit ba8d58b

Browse files
authored
Merge pull request #20 from alimanfoo/coveralls
Enable coveralls
2 parents 9aef3ff + 82505ee commit ba8d58b

File tree

7 files changed

+41
-25
lines changed

7 files changed

+41
-25
lines changed

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ python:
1818
- 3.6
1919

2020
install:
21-
- pip install -U tox-travis
22-
- pip install -U pip setuptools setuptools_scm wheel
23-
- pip install -U nose -rrequirements.txt
21+
- pip install -U tox-travis coveralls pip setuptools wheel
22+
- pip install -r requirements_dev.txt
2423
- python setup.py build_ext --inplace
2524

2625
script:
2726
- tox
27+
28+
after_success:
29+
- coveralls

README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ codecs for use in data storage and communication applications.
1212

1313
.. image:: https://ci.appveyor.com/api/projects/status/r35av34952d9fcyn?svg=true
1414
:target: https://ci.appveyor.com/project/alimanfoo/numcodecs
15+
16+
.. image:: https://coveralls.io/repos/github/alimanfoo/numcodecs/badge.svg?branch=master
17+
:target: https://coveralls.io/github/alimanfoo/numcodecs?branch=master

appveyor.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@ install:
4141
build: off
4242

4343
test_script:
44-
- "%CMD_IN_ENV% python -m pip install -U pip"
45-
- "%CMD_IN_ENV% python -m pip install -U setuptools wheel"
46-
- "%CMD_IN_ENV% python -m pip install -rrequirements_test.txt"
47-
- "%CMD_IN_ENV% python -m pip install -rrequirements.txt"
44+
- "%CMD_IN_ENV% python -m pip install -U pip setuptools wheel"
45+
- "%CMD_IN_ENV% python -m pip install -rrequirements_dev.txt"
4846
- "%CMD_IN_ENV% python setup.py build_ext --inplace"
4947
- "%CMD_IN_ENV% python -m nose -v"
5048

numcodecs/tests/test_msgpacks.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,9 @@
22
from __future__ import absolute_import, print_function, division
33

44

5-
import nose
65
import numpy as np
76
from numpy.testing import assert_raises
8-
9-
try:
10-
from numcodecs.msgpacks import MsgPack
11-
except ImportError:
12-
raise nose.SkipTest("no msgpack installed")
13-
7+
from numcodecs.msgpacks import MsgPack
148
from numcodecs.tests.common import (check_config, check_repr,
159
check_encode_decode_objects)
1610

requirements_dev.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# pinned dependencies for the development and CI environment
2+
appdirs
3+
args==0.1.0
4+
clint==0.5.1
5+
coverage==4.3.4
6+
Cython==0.25.2
7+
fasteners==0.14.1
8+
flake8==3.3.0
9+
mccabe==0.6.1
10+
monotonic==1.2
11+
msgpack-python==0.4.8
12+
nose==1.3.7
13+
numpy==1.12.0
14+
packaging
15+
pkginfo==1.4.1
16+
pluggy==0.4.0
17+
py==1.4.32
18+
pycodestyle==2.3.1
19+
pyflakes==1.5.0
20+
pyparsing==2.1.10
21+
requests==2.13.0
22+
requests-toolbelt==0.7.1
23+
setuptools-scm==1.15.0
24+
six
25+
tox==2.6.0
26+
twine==1.8.1
27+
virtualenv==15.1.0

requirements_test.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ setenv =
1212
commands =
1313
py27: pip install -U backports.lzma
1414
python setup.py build_ext --inplace
15-
py27,py34,py35: nosetests -v numcodecs
15+
py27,py34,py35: nosetests -v numcodecs --with-coverage --cover-erase --cover-package=numcodecs
1616
py36: nosetests -v --with-coverage --cover-erase --cover-package=numcodecs --with-doctest --doctest-options=+NORMALIZE_WHITESPACE numcodecs
1717
py36: flake8 --max-line-length=100 numcodecs
1818
python setup.py bdist_wheel
19+
coverage report -m
1920
deps =
20-
-rrequirements_test.txt
21-
-rrequirements.txt
21+
-rrequirements_dev.txt
2222

2323
[testenv:docs]
2424
basepython = python2.7

0 commit comments

Comments
 (0)