Skip to content

Commit

Permalink
CI template
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jan 23, 2019
1 parent 2fe66f3 commit 518bed5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 22 deletions.
20 changes: 20 additions & 0 deletions .coveragerc
@@ -0,0 +1,20 @@
[run]
cover_pylib = false
omit =
/home/travis/virtualenv/*
*/site-packages/*
*/bin/*

[report]
exclude_lines =
pragma: no cover
def __repr__
except RuntimeError
except NotImplementedError
except ImportError
except FileNotFoundError
except CalledProcessError
logging.warning
logging.error
logging.critical
if __name__ == .__main__.:
6 changes: 4 additions & 2 deletions .travis.yml
Expand Up @@ -26,11 +26,13 @@ matrix:
- flake8
- mypy . --ignore-missing-imports
after_success:
- pytest --cov --cov-config=setup.cfg
- pytest --cov
- coveralls
# - os: osx
# language: sh
# before_install: brew install ffmpeg > /dev/null
# before_install:
# - brew update > /dev/null
# - brew install ffmpeg > /dev/null
# install: pip3 install -e .[tests]
# - os: windows
# language: sh
Expand Down
20 changes: 0 additions & 20 deletions setup.cfg
Expand Up @@ -58,23 +58,3 @@ console_scripts =
max-line-length = 132
exclude = .git,__pycache__,.eggs/,doc/,docs/,build/,dist/,archive/

[coverage:run]
cover_pylib = false
omit =
/home/travis/virtualenv/*
*/site-packages/*
*/bin/*

[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
except RuntimeError
except NotImplementedError
except ImportError
except FileNotFoundError
except CalledProcessError
logging.warning
logging.error
logging.critical
if __name__ == .__main__.:

0 comments on commit 518bed5

Please sign in to comment.