Skip to content

Commit

Permalink
Merge pull request Unidata#105 from dopplershift/fixes
Browse files Browse the repository at this point in the history
Fixes
  • Loading branch information
dopplershift authored Jul 14, 2016
2 parents d979d10 + baa1e32 commit 8b69dd3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ script:
if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then
sed -i -e "s/python3/python2/" examples/notebooks/*.ipynb;
fi;
find examples/notebooks/ -name \*.ipynb -print0 | xargs -0 -n1 jupyter nbconvert --execute --ExecutePreprocessor.timeout=60 --to=notebook --stdout >| /dev/null;
find examples/notebooks/ -name \*.ipynb -print0 | xargs -0 -n1 jupyter nbconvert --execute --ExecutePreprocessor.timeout=180 --to=notebook --stdout >| /dev/null;
elif [[ $TASK == "coverage" ]]; then
python setup.py test --addopts --cov=siphon;
else
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ build: off
test_script:
- cmd: python setup.py test --addopts --cov=siphon
- cmd: cd examples/notebooks
- cmd: find . -name "*.ipynb" -print0 | xargs -0 -n1 jupyter nbconvert --execute --ExecutePreprocessor.timeout=120 --ExecutePreprocessor.kernel_name=devel --inplace
- cmd: find . -name "*.ipynb" -print0 | xargs -0 -n1 jupyter nbconvert --execute --ExecutePreprocessor.timeout=180 --ExecutePreprocessor.kernel_name=devel --inplace
- cmd: cd ../..

after_test:
Expand Down
10 changes: 10 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
coverage:
status:
patch:
default:
target: '80'
project:
default:
target: auto

comment: off
8 changes: 4 additions & 4 deletions docs/source/notebook_gen_sphinxext.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ def write_nb(dest, output, resources):
name = resources['metadata']['name']
with open(rst_file, 'w') as rst:
header = '=' * len(name)
rst.write(header + '\n')
rst.write(name + '\n')
rst.write(header + '\n')
rst.write(output)
rst.write(header.encode('utf-8') + b'\n')
rst.write(name.encode('utf-8') + b'\n')
rst.write(header.encode('utf-8') + b'\n')
rst.write(output.encode('utf-8'))

imgdir = os.path.join(dest, resources['metadata']['imgdir'])
if not os.path.exists(imgdir):
Expand Down

0 comments on commit 8b69dd3

Please sign in to comment.