Issue using virtualenvs for testing singleton in both Python versions
@@ -160,8 +160,16 @@ singleton:
- 181-global-application-configuration
script:
- PYTHONPATH=$(pwd) python tests/niftynet_global_config_test.py
- - python2 -m unittest tests.niftynet_global_config_test
- - python3 -m unittest tests.niftynet_global_config_test
+ - virtualenv -p $(which python2) singleton-ve-py2
+ - source singleton-ve-py2/bin/activate
+ - pip install tensorflow
+ - python -m unittest tests.niftynet_global_config_test
+ - deactivate
+ - virtualenv -p $(which python3) singleton-ve-py3
+ - source singleton-ve-py3/bin/activate
+ - pip install tensorflow
+ - python -m unittest tests.niftynet_global_config_test
+ - deactivate
tags:
- gift-linux
