Skip to content

Commit

Permalink
Add support for Code Climate coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
fatlotus committed Apr 8, 2018
1 parent 9be9d86 commit 7714059
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ dependencies:

test:
override:
- ./test-reporter-latest-darwin-amd64 before-build
- coverage run --source=caravel $(which nose2) --log-capture --plugin nose2.plugins.doctests --with-doctest
- coveralls || true
- ./test-reporter-latest-darwin-amd64 before-build

7 changes: 6 additions & 1 deletion unit_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ else
source venv/bin/activate
fi

CC_TEST_REPORTER_ID=189ccc50fd525bc8cfca2bebf76da4b6051536a23746618cdab6946c14501893 ./test-reporter-latest-darwin-amd64 before-build

coverage run --source=caravel $(which nose2) --log-capture \
--plugin nose2.plugins.doctests --with-doctest
coverage report
coverage report
coverage xml

CC_TEST_REPORTER_ID=189ccc50fd525bc8cfca2bebf76da4b6051536a23746618cdab6946c14501893 ./test-reporter-latest-darwin-amd64 after-build --exit-code 0 -t coverage.py

0 comments on commit 7714059

Please sign in to comment.