summaryrefslogtreecommitdiff
path: root/docker/runtests.sh
blob: 113b6307ae5f3ac8d4646ed9866e390477bc8d34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
set -e -x

for V in cp36-cp36m cp35-cp35m 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/pytest -v .
    popd
done