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 af83756
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ dependencies:
- curl -o ~/google_appengine_1.9.25.zip https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.25.zip
- unzip -q -d ~ ~/google_appengine_1.9.25.zip
- pip install -r requirements_dev.txt
- wget https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
- chmod +x ./test-reporter-latest-linux-amd64

test:
override:
- ./test-reporter-latest-linux-amd64 before-build
- coverage run --source=caravel $(which nose2) --log-capture --plugin nose2.plugins.doctests --with-doctest
- coveralls || true
- ./test-reporter-latest-linux-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 af83756

Please sign in to comment.