Do pycache cleanup at start of test loop

This commit is contained in:
Sviatoslav Sydorenko 2017-10-18 00:41:47 +03:00
parent d73a928380
commit 2b7eb63f51
No known key found for this signature in database
GPG Key ID: 7072133B5779DD62
1 changed files with 3 additions and 1 deletions

View File

@ -52,10 +52,12 @@ echo "dist directory:"
ls /io/dist
for PYTHON in ${PYTHON_VERSIONS}; do
# clear python cache
find /io -type d -name __pycache__ -delete
echo
echo -n "Test $PYTHON: "
/opt/python/${PYTHON}/bin/python -c "import platform; print('Building wheel for {platform} platform.'.format(platform=platform.platform()))"
/opt/python/${PYTHON}/bin/pip install "$package_name"[testing,webassets] -f file:///io/dist
find /io/tests -name __pycache__ | xargs rm -rf
/opt/python/${PYTHON}/bin/nosetests -v --with-coverage --cover-package="$package_name" --cover-erase /io/tests
done