Adding vtk install to tests.

This commit is contained in:
Patrick Shriwise 2018-10-04 12:43:32 -05:00
parent 4c6798b3e0
commit 755d0a5a5f
2 changed files with 11 additions and 2 deletions

View file

@ -53,8 +53,12 @@ class PlotTestHarness(TestHarness):
outstr = sha512.hexdigest()
# test the voxel to vtk conversion script
call(['../../../scripts/openmc-voxel-to-vtk'] +
glob.glob('plot_4.h5'))
try:
import vtk
call(['../../../scripts/openmc-voxel-to-vtk'] +
glob.glob('plot_4.h5'))
except:
pass
return outstr

View file

@ -26,5 +26,10 @@ python tools/ci/travis-install.py
# Install Python API in editable mode
pip install -e .[test]
a=$(dpkg --compare-versions $(python --version | cut -d" " -f 2) lt 3.7.0)
if [ $a -eq 0 ]; then
pip install -e .[vtk]
fi
# For uploading to coveralls
pip install coveralls