#!/bin/bash
set -e -x
# run the tests!
nosetests setup.py

if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
    mkdir -p $HOME/build/urschrei/convertbng/wheelhouse
    docker pull $DOCKER_IMAGE
    docker run --rm -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/ci/build_wheel.sh
    # clean up numpy
    sudo rm wheelhouse/numpy-1.11.0-cp27-cp27mu-manylinux1_x86_64.whl
fi

if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
    pip wheel . -w wheelhouse
fi

#!/bin/bash
set -e -x
# run the tests!
python setup.py nosetests

if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
    mkdir -p $HOME/build/urschrei/convertbng/wheelhouse
    docker pull $DOCKER_IMAGE
    docker run --rm -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/ci/build_wheel.sh
    # clean up numpy
    sudo rm wheelhouse/numpy-1.11.0-cp27-cp27mu-manylinux1_x86_64.whl
fi

if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
    pip wheel . -w wheelhouse
fi

--- 
+++ 
@@ -1,7 +1,7 @@
 #!/bin/bash
 set -e -x
 # run the tests!
-nosetests setup.py
+python setup.py nosetests
 
 if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
     mkdir -p $HOME/build/urschrei/convertbng/wheelhouse
Fix linux tests, pre Wheel build
