Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
Generate code coverage with Coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
danvk committed May 17, 2016
1 parent 5013301 commit 2ed1990
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -54,3 +54,6 @@ coverage.xml
# Sphinx documentation
docs/sphinx/_build/

# IntelliJ / PyCharm
.idea

5 changes: 4 additions & 1 deletion circle.yml
@@ -1,9 +1,12 @@
machine:
environment:
TESTCMD: 'python -V && pip install .[tests] && flake8 && nosetests -vv --exclude=compare_implementations_test'
TESTCMD: 'python -V && pip install .[tests] && flake8 && nosetests --with-coverage -vv --exclude=compare_implementations_test'

test:
override:
- deactivate && pyenv shell 2.7.11 && bash -c "$TESTCMD"
- deactivate && pyenv shell 3.4.4 && bash -c "$TESTCMD"
- deactivate && pyenv shell 3.5.1 && bash -c "$TESTCMD"

post:
- coveralls
4 changes: 4 additions & 0 deletions setup.cfg
Expand Up @@ -2,3 +2,7 @@
# ignore H301 to allow multiple imports per line
ignore = H301
exclude = venv*,build,dist,docs,tests/s2-geometry

[coverage:run]
include = s2sphere/*

3 changes: 2 additions & 1 deletion setup.py
Expand Up @@ -24,7 +24,8 @@
'flake8>=2.5.4',
'hacking>=0.11.0',
'nose>=1.3.4',
'numpy>=1.11.0'
'numpy>=1.11.0',
'coveralls>=1.1'
],
'docs': [
'Sphinx>=1.4.1',
Expand Down

0 comments on commit 2ed1990

Please sign in to comment.