Commit a977aeae authored by David Trudgian's avatar David Trudgian
Browse files

Try to get travis empty test with pytest working

parent 0d75a5a4
sudo: false
language: python
python:
- "2.6"
- "2.7"
- "3.4"
install: pip install tox-travis
script: tox
- "3.5"
- "3.6"
install:
- pip install flake8
- python setup.py install
script: pytest --cov
......@@ -53,5 +53,3 @@ def main(image, clair_uri, text_output, json_output, bind_ip, bind_port):
format_report_text(report)
if __name__ == '__main__':
main()
[wheel]
universal = 1
[aliases]
test=pytest
......@@ -18,6 +18,8 @@ setup(
zip_safe=False,
platforms='any',
install_requires=dependencies,
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-cov'],
entry_points={
'console_scripts': [
'clair-singularity = clair_singularity.cli:main',
......
......@@ -7,3 +7,5 @@ from clair_singularity import cli
def runner():
return CliRunner()
def test_help(runner):
result = runner.invoke(cli, ['--help'])
[tox]
envlist=py27, py34, py35, py36, pypy, flake8
[testenv]
commands=py.test --cov clair_singularity {posargs}
deps=
pytest
pytest-cov
[testenv:flake8]
basepython = python2.7
deps =
flake8
commands =
flake8 clair_singularity tests --max-line-length=120
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment