mirror of
https://github.com/correl/typesafe-monads.git
synced 2024-11-21 19:18:42 +00:00
Configure Travis CI and CodeCov
Configure automated tests with Travis CI, and upload code coverage reports to codecov.io
This commit is contained in:
parent
8e5b34f4f9
commit
0072034f99
3 changed files with 15 additions and 2 deletions
12
.travis.yml
Normal file
12
.travis.yml
Normal 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
|
|
@ -2,4 +2,4 @@
|
|||
test=pytest
|
||||
|
||||
[tool:pytest]
|
||||
addopts = --mypy
|
||||
addopts = --mypy --cov monads --cov-report xml:reports/coverage.xml
|
||||
|
|
3
setup.py
3
setup.py
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue