Skip to content

Commit 6c1f3b7

Browse files
committed
Test first, compile wheels later on Travis.
1 parent 7002ea0 commit 6c1f3b7

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

travis/build-wheels.sh

+4-11
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
11
#!/bin/bash
22
set -e -x
33

4-
# Install a system package required by our library
5-
yum install -y atlas-devel
6-
7-
# Compile wheels
8-
for PYBIN in /opt/python/*/bin; do
4+
# test and compile wheels
5+
for PYBIN in /opt/python/*/bin/; do
96
${PYBIN}/pip install -r /io/dev-requirements.txt
7+
${PYBIN}/python /io/setup.py test
108
${PYBIN}/pip wheel /io/ -w wheelhouse/
119
done
1210

1311
# Bundle external shared libraries into the wheels
14-
for whl in wheelhouse/*.whl; do
12+
for whl in wheelhouse/bencoder*.whl; do
1513
auditwheel repair $whl -w /io/wheelhouse/
1614
done
1715

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

0 commit comments

Comments
 (0)