Issue revised Git-clone and pip installer version tests for precision
@@ -79,8 +79,8 @@ testjob:
# check whether version command works
# Git-clone:
- - python net_segment.py --version 2>&1 | grep -E 'NiftyNet.*version.*untagged'
- - python -c 'import niftynet; print(niftynet.__version__)' | grep -E 'NiftyNet.*version.*untagged'
+ - python net_segment.py --version 2>&1 | grep -E 'NiftyNet.*version.*[0-9]+\.[0-9]+\.[0-9]+' | grep -E '\+[0-9]+.g[0-9|a-f]+'
+ - python -c 'import niftynet; print(niftynet.__version__)' | grep -E 'NiftyNet.*version.*[0-9]+\.[0-9]+\.[0-9]+' | grep -E '\+[0-9]+.g[0-9|a-f]+'
# downloaded ZIP ball:
- export check_version_zip=check_version_zip
- mkdir $check_version_zip
@@ -489,8 +489,8 @@ pip-camera-ready:
- source $check_version_venv/bin/activate
- pip install -r requirements-gpu.txt
- pip install $niftynet_wheel
- - net_segment --version 2>&1 | grep -E 'NiftyNet.*version'
- - python -c 'import niftynet; print(niftynet.__version__)' | grep -E 'NiftyNet.*version'
+ - net_segment --version 2>&1 | grep -E 'NiftyNet.*version.*[0-9]+\.[0-9]+\.[0-9]+' | grep -v +
+ - python -c 'import niftynet; print(niftynet.__version__)' | grep -E 'NiftyNet.*version.*[0-9]+\.[0-9]+\.[0-9]+' | grep -v +
- deactivate
- rm -rf $check_version_venv
# Finally do copy
