| 1 |
#!/bin/bash |
| 2 |
DOCKER_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
| 3 |
source "$DOCKER_DIR/shared.env" |
| 4 |
|
| 5 |
set -e -x |
| 6 |
|
| 7 |
for V in "${PYTHON_VERSIONS[@]}"; do |
| 8 |
PYBIN=/opt/python/$V/bin |
| 9 |
$PYBIN/python setup.py install |
| 10 |
rm -rf build/ # Avoid lib build by narrow Python is used by wide python |
| 11 |
$PYBIN/pip install pytest |
| 12 |
pushd test # prevent importing msgpack package in current directory. |
| 13 |
$PYBIN/python -c 'import sys; print(hex(sys.maxsize))' |
| 14 |
$PYBIN/python -c 'from msgpack import _cmsgpack' # Ensure extension is available |
| 15 |
$PYBIN/pytest -v . |
| 16 |
popd |
| 17 |
done |