From 149eb0e4d90aad1a252aff58cefc356f018e33a3 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 19 Jan 2020 13:49:16 -0600 Subject: Test configuration for using codecov --- .coveragerc | 2 ++ .travis.yml | 6 ++++-- tox.ini | 5 ++++- 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..e272605 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[run] +source=config_file \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index f535f0c..3fb5db1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,9 @@ matrix: include: - stage: test python: 3.8 - install: pip install --upgrade pip tox poetry + install: pip install --upgrade pip tox poetry codecov script: tox env: - TOXENV: py38 \ No newline at end of file + TOXENV: py38 + after_success: + - codecov \ No newline at end of file diff --git a/tox.ini b/tox.ini index d86b26b..d94f733 100644 --- a/tox.ini +++ b/tox.ini @@ -3,7 +3,10 @@ isolated_build = true envlist = py38 [testenv] +passenv = CI TRAVIS TRAVIS_* +deps = codecov whitelist_externals = poetry commands = poetry install -v - poetry run pytest --cov=config_file/ tests/ \ No newline at end of file + poetry run pytest --cov=config_file/ tests/ + codecov \ No newline at end of file -- cgit v1.2.3