Issue changing back to NiftyNet dir when checking failure graceful when TF not installed
@@ -131,13 +131,16 @@ pip-installer:
- mypython=$(which python2)
- virtualenv -p $mypython $venv
- cd $venv
+ - venv_dir=$(pwd)
- source bin/activate
# print Python version to CI output
- which python
- python --version
# NiftyNet console entries should fail gracefully if TF not installed
# i.e. check that the warning displays the TF website
+ - cd $niftynet_dir
- python -c "import niftynet" 2>&1 | grep "https://www.tensorflow.org/"
+ - cd $venv_dir
# NiftyNet should not install if TF not installed
- set +e
- pip install $niftynet_wheel; fail_on_success
@@ -162,13 +165,16 @@ pip-installer:
- mypython=$(which python3)
- virtualenv -p $mypython $venv
- cd $venv
+ - venv_dir=$(pwd)
- source bin/activate
# print Python version to CI output
- which python
- python --version
# NiftyNet console entries should fail gracefully if TF not installed
# i.e. check that the warning displays the TF website
+ - cd $niftynet_dir
- python -c "import niftynet" 2>&1 | grep "https://www.tensorflow.org/"
+ - cd $venv_dir
# NiftyNet should not install if TF not installed
- set +e
- pip install $niftynet_wheel; fail_on_success
