Skip to content

Commit 0d13a80

Browse files
committed
CI: only run examples when Slycot installed
1 parent a40cd45 commit 0d13a80

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.travis.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,12 @@ script:
7676
- 'if [ $SLYCOT != "" ]; then python -c "import slycot"; fi'
7777
- coverage run setup.py test
7878
# set PYTHONPATH for examples
79-
- export PYTHONPATH=$PWD
80-
# pmw needed for examples/tfvis.py
81-
- conda install -c conda-forge pmw
82-
- '(cd examples && bash run_examples.sh)'
79+
- if [[ "$SLYCOT" != "" ]]; then
80+
export PYTHONPATH=$PWD
81+
# pmw needed for examples/tfvis.py
82+
conda install -c conda-forge pmw
83+
'(cd examples && bash run_examples.sh)'
84+
fi
8385

8486
after_success:
8587
- coveralls

0 commit comments

Comments
 (0)