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 15, 2018
1 parent 33a3504 commit 929c923
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 21 deletions.
22 changes: 11 additions & 11 deletions .travis.yml
Expand Up @@ -8,27 +8,27 @@ git:
quiet: true

python:
- 3.6
- 3.7
- 3.6
- 3.7

os:
- linux
- linux

addons:
apt:
packages:
- poppler-utils
- poppler-utils

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 --cov-config=setup.cfg;
coveralls;
fi

17 changes: 8 additions & 9 deletions setup.cfg
Expand Up @@ -60,13 +60,12 @@ omit =
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_load.py
Expand Up @@ -42,4 +42,4 @@ def test_ld():


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

0 comments on commit 929c923

Please sign in to comment.