mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2024-11-26 22:50:40 +00:00
35 lines
564 B
Bash
Executable File
35 lines
564 B
Bash
Executable File
#!/bin/bash
|
|
# Run tests over all Python versions in branch python-2.4-2.7
|
|
set -e
|
|
function finish {
|
|
cd $owd
|
|
}
|
|
owd=$(pwd)
|
|
trap finish EXIT
|
|
|
|
cd $(dirname ${BASH_SOURCE[0]})
|
|
if ! source ./pyenv-2.4-2.7-versions ; then
|
|
exit $?
|
|
fi
|
|
if ! source ./setup-python-2.4.sh ; then
|
|
rc=$?
|
|
finish
|
|
exit $rc
|
|
fi
|
|
|
|
cd ..
|
|
for version in $PYVERSIONS; do
|
|
echo --- $version ---
|
|
if ! pyenv local $version ; then
|
|
exit $?
|
|
fi
|
|
make clean && python setup.py develop
|
|
if ! make check ; then
|
|
finish
|
|
rc=$?
|
|
exit $?
|
|
fi
|
|
echo === $version ===
|
|
done
|
|
finish
|