Browse Source

Merge pull request #524 from flaskbb/codecov

Fix codecov
Peter Justin 6 years ago
parent
commit
cd9b3cdf28
2 changed files with 8 additions and 4 deletions
  1. 4 1
      .travis.yml
  2. 4 3
      tox.ini

+ 4 - 1
.travis.yml

@@ -6,6 +6,7 @@ python:
   - 3.5
   - 3.6
   - 3.7
+
 matrix:
   fast_finish: true
   include:
@@ -27,13 +28,15 @@ matrix:
 install:
 - pip install -r requirements-dev.txt
 - pip install tox-travis
+- pip install codecov
 
 script:
 - flaskbb translations compile
 - tox
 
 after_success:
-- coverage combine
+- coverage combine tests
+- coverage report
 - codecov
 
 cache:

+ 4 - 3
tox.ini

@@ -3,7 +3,7 @@ skip_missing_interpreters=true
 envlist =
     py{35,36,37},
     flake8,
-    coverage_report
+    coverage-report
 
 [testenv]
 use_develop = true
@@ -17,8 +17,9 @@ setenv =
 commands =
     coverage run -m pytest {toxinidir}/tests {toxinidir}/flaskbb {posargs}
 
-[testenv:coverage_report]
+[testenv:coverage-report]
 skip_install = true
+deps = coverage
 commands =
     coverage combine tests
     coverage report
@@ -28,8 +29,8 @@ skip_install = true
 deps = codecov
 commands =
     coverage combine tests
-    coverage report
     codecov
+    coverage report
 
 [testenv:black]
 skip_install = true