2016-05-05 02:07:46 +09:00
|
|
|
#!/bin/bash
|
|
|
|
set -e -x
|
|
|
|
|
2017-11-02 11:06:15 +02:00
|
|
|
for V in cp36-cp36m cp35-cp35m cp27-cp27m cp27-cp27mu; do
|
2016-05-05 02:07:46 +09:00
|
|
|
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))'
|
2018-10-03 21:44:06 +09:00
|
|
|
$PYBIN/python -c 'from msgpack import _msgpack' # Ensure extension is available
|
2018-01-11 19:41:05 +09:00
|
|
|
$PYBIN/pytest -v .
|
2016-05-05 02:07:46 +09:00
|
|
|
popd
|
|
|
|
done
|