#!/bin/bash
set -e -x
# run the tests!
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
    mkdir -p $HOME/build/urschrei/$PROJECT_NAME/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 -rf wheelhouse/numpy*
fi

if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
    source ci/osx_utils.sh
    source venv/bin/activate
    pip wheel . -w wheelhouse
    ls wheelhouse
    pip --version
    mkdir to_test
    cd to_test
    cnv=$(ls $HOME/build/urschrei/$PROJECT_NAME/wheelhouse/convert*)
    pip install $cnv --no-index --find-links=file://$HOME/build/urschrei/$PROJECT_NAME/wheelhouse
    nosetests $PROJECT_NAME
    cd $HOME/build/urschrei/$PROJECT_NAME
    rm -rf wheelhouse/numpy*
    # run delocate
    repair_wheelhouse wheelhouse
fi

#!/bin/bash
set -e -x
# run the tests!
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
    mkdir -p $HOME/build/urschrei/$PROJECT_NAME/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 -rf wheelhouse/numpy*
fi

if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
    source ci/osx_utils.sh
    source venv/bin/activate
    pip wheel . -w wheelhouse
    ls wheelhouse
    pip --version
    mkdir to_test
    cd to_test
    cnv=$(ls $HOME/build/urschrei/$PROJECT_NAME/wheelhouse/convert*)
    pip install $HOME/build/urschrei/$PROJECT_NAME/wheelhouse/$cnv --no-index --find-links=file://$HOME/build/urschrei/$PROJECT_NAME/wheelhouse
    nosetests $PROJECT_NAME
    cd $HOME/build/urschrei/$PROJECT_NAME
    rm -rf wheelhouse/numpy*
    # run delocate
    repair_wheelhouse wheelhouse
fi

--- 
+++ 
@@ -18,7 +18,7 @@
     mkdir to_test
     cd to_test
     cnv=$(ls $HOME/build/urschrei/$PROJECT_NAME/wheelhouse/convert*)
-    pip install $HOME/build/urschrei/$PROJECT_NAME/wheelhouse/$cnv --no-index --find-links=file://$HOME/build/urschrei/$PROJECT_NAME/wheelhouse
+    pip install $cnv --no-index --find-links=file://$HOME/build/urschrei/$PROJECT_NAME/wheelhouse
     nosetests $PROJECT_NAME
     cd $HOME/build/urschrei/$PROJECT_NAME
     rm -rf wheelhouse/numpy*
Fix local wheel install path
