Skip to content

Commit b95be03

Browse files
committed
execute also new tests in Travis
not a backport, necessary to make the tests runnable on 0.13 branch
1 parent 99c907d commit b95be03

File tree

8 files changed

+33
-2
lines changed

8 files changed

+33
-2
lines changed

.coveragerc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ omit =
77
ecdsa/six.py
88
ecdsa/_version.py
99
ecdsa/test_ecdsa.py
10+
ecdsa/test_der.py
11+
ecdsa/test_malformed_sigs.py

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# workaround for 3.7 not available in default configuration
22
# travis-ci/travis-ci#9815
33
dist: trusty
4+
sudo: false
45
language: python
6+
cache: pip
7+
before_cache:
8+
- rm -f $HOME/.cache/pip/log/debug.log
59
python:
610
- "2.6"
711
- "2.7"
@@ -14,6 +18,8 @@ install:
1418
- if [[ -e build-requirements-${TRAVIS_PYTHON_VERSION}.txt ]]; then travis_retry pip install -r build-requirements-${TRAVIS_PYTHON_VERSION}.txt; else travis_retry pip install -r build-requirements.txt; fi
1519
script:
1620
- coverage run setup.py test
21+
- if [[ $TRAVIS_PYTHON_VERSION != 3.2 && ! $TRAVIS_PYTHON_VERSION =~ py ]]; then tox -e py${TRAVIS_PYTHON_VERSION/./}; fi
22+
- if [[ $TRAVIS_PYTHON_VERSION =~ py ]]; then tox -e $TRAVIS_PYTHON_VERSION; fi
1723
- python setup.py speed
1824
after_success:
1925
- coveralls

build-requirements-3.2.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ PyYAML<3.13
77
tox<3.0
88
wheel<0.30
99
virtualenv==15.2.0
10+
pytest>2.7.3

build-requirements-3.3.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ python-coveralls
22
tox<3.0
33
wheel<0.30
44
virtualenv==15.2.0
5+
pluggy<0.6

build-requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
python-coveralls
2+
pytest>3.0.7
3+
pytest-cov<2.7.0
4+
tox

ecdsa/test_der.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
except ImportError:
77
import unittest
88
from .der import remove_integer, UnexpectedDER, read_length
9-
from six import b
9+
from .six import b
1010

1111
class TestRemoveInteger(unittest.TestCase):
1212
# DER requires the integers to be 0-padded only if they would be

ecdsa/test_malformed_sigs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import pytest
44
import hashlib
55

6-
from six import b, binary_type
6+
from .six import b, binary_type
77
from .keys import SigningKey, VerifyingKey
88
from .keys import BadSignatureError
99
from .util import sigencode_der, sigencode_string

tox.ini

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[tox]
2+
envlist = py26, py27, py33, py34, py35, py36, py37, pypy, pypy3
3+
4+
5+
[testenv]
6+
deps =
7+
py{33}: py<1.5
8+
py{33}: pytest<3.3
9+
py{26}: unittest2
10+
py{26,27,34,35,36,37,py,py3}: pytest
11+
py{33}: wheel<0.30
12+
coverage
13+
14+
commands = coverage run --branch -m pytest
15+
16+
[testenv:coverage]
17+
sitepackages=True
18+
commands = coverage run --branch -m pytest

0 commit comments

Comments
 (0)