Skip to content

Commit

Permalink
examples testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedh committed Sep 19, 2018
1 parent 4d831e4 commit 33c54db
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ script:
- pytest tests/test_graph.py tests/test_scene.py

# make sure examples still work
- for f in examples/*py*; do python tests/notebooks.py exec "$f"; done
- cd examples
- set -xe; for f in *py*; do python ../tests/notebooks.py exec "$f"; done
- cd ..

after_success:
- coveralls
5 changes: 4 additions & 1 deletion examples/offscreen_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

# saving an image requires an opengl context, so if -nw
# is passed don't save the image
if not '-nw' in sys.argv:
try:
# increment the file name
file_name = 'render_' + str(i) + '.png'
# save a render of the object as a png
Expand All @@ -47,3 +47,6 @@
with open(file_name, 'wb') as f:
f.write(png)
f.close()

except BaseException as E:
print("unable to save image", str(E))
2 changes: 1 addition & 1 deletion trimesh/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.33.35'
__version__ = '2.33.36'

0 comments on commit 33c54db

Please sign in to comment.