Skip to content

Commit ad51018

Browse files
committed
Fixed testing with Travis CI and Tox
- Added missing test dependencies. - Updated `.travis.yml` and `tox.ini` to install deps and run with pipenv. - Added testing on Python 3.7.
1 parent c2211ee commit ad51018

File tree

5 files changed

+157
-49
lines changed

5 files changed

+157
-49
lines changed

.gitignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
/distribute*.tar.gz
99
/distribute*.egg
1010

11-
/.tox/
12-
/.coverage
13-
/.coverage.*
14-
/.cache/
11+
.tox/
12+
.coverage
13+
.coverage.*
14+
.cache/
15+
.pytest_cache/
1516
__pycache__/
1617

1718
/build/

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ python:
88
- 3.4
99
- 3.5
1010
- 3.6
11+
- 3.7
1112
- "pypy"
1213

1314
install:
14-
- pip install tox-travis
15-
- pip install -r requirements.txt
16-
- pip install coveralls
15+
- pip install pipenv
16+
- pipenv install --dev --ignore-pipfile
1717

1818
script:
19-
- tox
19+
- pipenv run py.test tox
2020

2121
after_success:
22-
- coveralls
22+
- pipenv run coveralls

Pipfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ name = "pypi"
1010
tox = "*"
1111
mock = ">=2.0.0"
1212
Sphinx = "*"
13+
coveralls = "*"
14+
pytest = "*"
15+
pytest-cov = "*"
1316

1417
[requires]
1518
python_version = "3.6"

Pipfile.lock

Lines changed: 136 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tox.ini

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
[tox]
22
# Environment changes have to be manually synced with '.travis.yml'.
3-
envlist = py27,py34,py35,py36,pypy
3+
envlist = py27,py34,py35,py36,p37,pypy
44

55
[pytest]
66
addopts = -v --cov rsa --cov-report term-missing
77

88
[testenv]
9-
commands=py.test []
10-
deps=pyasn1 >=0.1.3
11-
coverage >=3.5
12-
PyTest
13-
pytest-xdist
14-
pytest-cov
15-
mock
9+
deps = pipenv
10+
commands=
11+
pipenv install --dev --ignore-pipfile
12+
pipenv run py.test tests
1613

1714
[testenv:py36]
18-
commands=py.test --doctest-modules rsa tests
15+
commands=
16+
pipenv install --dev --ignore-pipfile
17+
pipenv run py.test --doctest-modules rsa tests
1918

2019
[pep8]
2120
max-line-length = 100

0 commit comments

Comments
 (0)