Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for tox and made coveralls work (#85)
* Added support for tox * Added an image for coveralls * Added modules pytest-timeout, coveralls, pytest-cov * Create install-aiocoap.sh (We are referencing this file in the readme and tests won't run without the file so I'm putting it back again.)
- Loading branch information
Patrik
committed
Oct 28, 2017
1 parent
d67b240
commit 472cdac
Showing
5 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
pytest>=3.2.3 | ||
flake8 | ||
pytest-timeout>=1.2.0 | ||
coveralls | ||
pytest-cov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-#!/bin/sh | ||
-cd ../.. | ||
-git clone https://github.com/chrysn/aiocoap | ||
-cd aiocoap | ||
-git reset --hard 3286f48f0b949901c8b5c04c0719dc54ab63d431 | ||
-python3 -m pip install --upgrade pip setuptools | ||
-python3 -m pip install . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[tox] | ||
envlist = py34, py35, py36, lint, requirements, typing | ||
skip_missing_interpreters = True | ||
|
||
[testenv] | ||
setenv = | ||
PYTHONPATH = {toxinidir}:{toxinidir}/pytradfri | ||
whitelist_externals = /usr/bin/env | ||
install_command = /usr/bin/env LANG=C.UTF-8 pip install {opts} {packages} | ||
commands = | ||
py.test --timeout=30 --duration=10 --cov --cov-report= {posargs} | ||
deps = | ||
-r{toxinidir}/requirements.txt | ||
-r{toxinidir}/requirements_test.txt | ||
|
||
[testenv:lint] | ||
basepython = python3 | ||
ignore_errors = True | ||
deps = | ||
-r{toxinidir}/requirements.txt | ||
-r{toxinidir}/requirements_test.txt | ||
commands = | ||
flake8 | ||
pylint pytradtri | ||
pydocstyle pytradtri tests |