Issue creating ZIP-ball-check directory outside local clone in CI tests so as to avoid confusing versioneer with the functional 'git describe' command
@@ -82,13 +82,14 @@ testjob:
- python net_segment.py --version 2>&1 | grep -E 'NiftyNet.*version.*[0-9]+\.[0-9]+\.[0-9]+'
- python -c 'import niftynet; print(niftynet.__version__)' | grep -E 'NiftyNet.*version.*[0-9]+\.[0-9]+\.[0-9]+'
# downloaded ZIP ball:
- - export check_version_zip=check_version_zip
+ - export check_version_zip=/tmp/check_version_zip-$(git rev-parse --short HEAD)
- mkdir $check_version_zip
- git archive --format=tar HEAD | (cd $check_version_zip && tar xf -)
- cd $check_version_zip
- python net_segment.py --version 2>&1 | grep -E 'NiftyNet.*version.*unknown'
- python -c 'import niftynet; print(niftynet.__version__)' | grep -E 'NiftyNet.*version.*unknown'
- - cd ..
+ - cd $niftynet_dir
+ - rm -rf $check_version_zip
- unset check_version_zip
# tests
