msgpack-python/docker/runtests.sh
INADA Naoki 63e23d37f9 travis: Use docker to test 32bit environment (#189)
* travis: testing matrix.include feature to use docker
* Add test script for 32bit
* Fix OverflowError in 32bit Environment
2016-05-05 02:07:46 +09:00

14 lines
496 B
Bash
Executable file

#!/bin/bash
set -e -x
for V in cp35-cp35m cp34-cp34m cp27-cp27m cp27-cp27mu; do
PYBIN=/opt/python/$V/bin
$PYBIN/python setup.py install
rm -rf build/ # Avoid lib build by narrow Python is used by wide python
$PYBIN/pip install pytest
pushd test # prevent importing msgpack package in current directory.
$PYBIN/python -c 'import sys; print(hex(sys.maxsize))'
$PYBIN/python -c 'from msgpack import _packer, _unpacker'
$PYBIN/py.test -v
popd
done