aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2020-01-19 13:49:16 -0600
committerEugene Triguba <eugenetriguba@gmail.com>2020-01-19 13:49:16 -0600
commit149eb0e4d90aad1a252aff58cefc356f018e33a3 (patch)
tree55f8db2df3457efe785398f1c9da4afc4e5bbd1c
parentBump version: 0.3.3 → 0.4.0 (diff)
downloadconfig-file-149eb0e4d90aad1a252aff58cefc356f018e33a3.zip
Test configuration for using codecov
-rw-r--r--.coveragerc2
-rw-r--r--.travis.yml6
-rw-r--r--tox.ini5
3 files changed, 10 insertions, 3 deletions
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