Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrating Coverage.py with cesium #211

Merged
merged 14 commits into from
Nov 14, 2016
12 changes: 12 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Configuration for coverage.py

[run]
branch = True
source = cesium
include = */cesium/*

[report]
exclude_lines =
def __repr__
if __name__ == .__main__.:
show_missing = True
14 changes: 14 additions & 0 deletions .drone/coverage_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

set -e

if [[$COVERAGE == 1]]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this blank line

then
echo "Python version: 3.4/3.5"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's get rid of this line

echo "Running coverage.py"
nosetests -v --exe --with-coverage
else
echo "Python version: 2.x"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this "else" segment

echo "Coverage not set up for python 2.x"
fi
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ matrix:
- python: 3.4
env:
- TEST_TARGET=test
- COVERAGE = 1
- python: 3.5
env:
env:
- COVERAGE = 1
- TEST_TARGET=test
- DEPLOY_DOCS=1

Expand All @@ -93,4 +95,6 @@ install:

script: .drone/travis_script.sh

after_success: .drone/deploy_docs.sh
after_success:
- .drone/deploy_docs.sh
- .drone/coverage_build.sh
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ xarray>=0.8.1
gatspy>=0.3.0
netCDF4
cloudpickle
coverage