Add codecov configuration (#1180)

* Add codecov configuration

* Modify workflow
This commit is contained in:
Matt Weiden
2020-02-26 14:57:46 -08:00
committed by GitHub
parent 0043308b52
commit 8b0adcdfcc
2 changed files with 12 additions and 4 deletions

8
.codecov.yml Normal file
View File

@@ -0,0 +1,8 @@
coverage:
status:
project:
default:
informational: true
patch:
default:
informational: true

View File

@@ -47,8 +47,8 @@ jobs:
- name: Unit tests
run: |
make unit-test
bash <(curl -s https://codecov.io/bash) -k server -cF backend,python,unitTest
cd client && ./node_modules/codecov/bin/codecov --root=../ --gcov-root=../ -C -F frontend,javascript,unitTest
bash <(curl -s https://codecov.io/bash) -y .codecov.yml -k server -cF backend,python,unitTest
cd client && ./node_modules/codecov/bin/codecov --yml=../.codecov.yml --root=../ --gcov-root=../ -C -F frontend,javascript,unitTest
smoke-tests:
runs-on: ubuntu-latest
@@ -77,7 +77,7 @@ jobs:
- name: Smoke tests (without annotations feature)
run: |
cd client && make smoke-test
./node_modules/codecov/bin/codecov --root=../ --gcov-root=../ -C -F frontend,javascript,smokeTest
./node_modules/codecov/bin/codecov --yml=../.codecov.yml --root=../ --gcov-root=../ -C -F frontend,javascript,smokeTest
smoke-tests-annotations:
runs-on: ubuntu-latest
@@ -106,4 +106,4 @@ jobs:
- name: Smoke tests (with annotations feature)
run: |
cd client && make smoke-test-annotations
./node_modules/codecov/bin/codecov --root=../ --gcov-root=../ -C -F frontend,javascript,smokeTestAnnotations
./node_modules/codecov/bin/codecov --yml=../.codecov.yml --root=../ --gcov-root=../ -C -F frontend,javascript,smokeTestAnnotations