Configure Travis CI and CodeCov

Configure automated tests with Travis CI, and upload code coverage
reports to codecov.io
This commit is contained in:
Correl Roush 2018-11-29 11:21:39 -05:00
parent 8e5b34f4f9
commit 0072034f99
3 changed files with 15 additions and 2 deletions

12
.travis.yml Normal file
View file

@ -0,0 +1,12 @@
language: python
python: 3.7
dist: xenial
sudo: true
before_install:
- pip install codecov
install:
- pip install -e .
script:
- python setup.py test
after_success:
- codecov

View file

@ -2,4 +2,4 @@
test=pytest
[tool:pytest]
addopts = --mypy
addopts = --mypy --cov monads --cov-report xml:reports/coverage.xml

View file

@ -3,6 +3,7 @@ from setuptools import setup # type: ignore
with open("README.md", "r") as f:
long_description = f.read()
setup(
name="typesafe-monads",
version="0.2",
@ -14,7 +15,7 @@ setup(
url="https://github.com/correl/typesafe-monads",
packages=["monads"],
setup_requires=["pytest-runner"],
tests_require=["pytest", "mypy", "pytest-mypy"],
tests_require=["pytest", "mypy", "pytest-cov", "pytest-mypy"],
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",