#!/bin/bash
set -e -x

# Install a system package required by our library
yum install -y atlas-devel

# Compile wheels
for PYBIN in /opt/python/*/bin; do
    ${PYBIN}/pip install -r /io/dev-requirements.txt
    ${PYBIN}/pip wheel /io/ -w wheelhouse/
done

# Bundle external shared libraries into the wheels
for whl in wheelhouse/*.whl; do
    auditwheel repair $whl -w /io/wheelhouse/
done

# Install packages and test
for PYBIN in /opt/python/*/bin/; do
    ${PYBIN}/pip install bencoder.pyx --no-index -f /io/wheelhouse
    ${PYBIN}/nosetests /io/
done

#!/bin/bash
set -e -x

# test and compile wheels
for PYBIN in /opt/python/*/bin/; do
    ${PYBIN}/pip install -r /io/dev-requirements.txt
    ${PYBIN}/python /io/setup.py test
    ${PYBIN}/pip wheel /io/ -w wheelhouse/
done

# Bundle external shared libraries into the wheels
for whl in wheelhouse/bencoder*.whl; do
    auditwheel repair $whl -w /io/wheelhouse/
done


Test first, compile wheels later on Travis.
Test first, compile wheels later on Travis.
