Skip to content
This repository has been archived by the owner on Dec 29, 2021. It is now read-only.

Commit

Permalink
CI template
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Aug 7, 2018
1 parent f928ab0 commit 70a747f
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 25 deletions.
21 changes: 11 additions & 10 deletions .travis.yml
Expand Up @@ -8,21 +8,22 @@ git:
quiet: true

python:
- 3.6
- 3.7
- 3.6
- 3.7

os:
- linux
- linux

install: pip install -e .[tests]

script:
- pytest -sv
- flake8
- mypy . --ignore-missing-imports
- pytest -rsv
- flake8
- mypy . --ignore-missing-imports

after_success:
- if [[ $TRAVIS_PYTHON_VERSION == 3.6* ]]; then
pytest --cov;
coveralls;
fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.6* ]]; then
pytest --cov;
coveralls;
fi

28 changes: 14 additions & 14 deletions setup.cfg
Expand Up @@ -2,15 +2,14 @@
name = geckodrive
version = 0.5.1
author = Michael Hirsch, Ph.D.
url = https://github.com/scivision/geckodrive
description = control Geckodrive motion
keywords =
url = https://github.com/scivision/geckodrive
keywords =
stepper motor
classifiers =
Development Status :: 3 - Alpha
Environment :: Console
Intended Audience :: Information Technology
Intended Audience :: System Administrators
Intended Audience :: Developers
Operating System :: OS Independent
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Expand All @@ -21,7 +20,7 @@ long_description_content_type = text/markdown

[options]
python_requires = >= 3.6
setup_requires =
setup_requires =
setuptools >= 38.6
pip >= 10
twine >= 1.11
Expand All @@ -33,7 +32,7 @@ install_requires =


[options.extras_require]
tests =
tests =
pytest
pytest-cov
coveralls
Expand All @@ -55,17 +54,18 @@ omit =
/home/travis/virtualenv/*
*/site-packages/*
*/bin/*
*/build/*

[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
RuntimeError
NotImplementedError
ImportError
KeyError
FileNotFoundError
CalledProcessError
except RuntimeError
except NotImplementedError
except ImportError
except FileNotFoundError
except CalledProcessError
logging.warning
ValueError
TypeError
logging.error
logging.critical
if __name__ == .__main__.:
2 changes: 1 addition & 1 deletion tests/test_all.py
Expand Up @@ -44,4 +44,4 @@ def test_movedrive():


if __name__ == '__main__':
pytest.main()
pytest.main(['-x', __file__])

0 comments on commit 70a747f

Please sign in to comment.