diff options
author | Matthew Brett <matthew.brett@gmail.com> | 2015-04-29 14:52:27 -0700 |
---|---|---|
committer | Matthew Brett <matthew.brett@gmail.com> | 2015-04-30 13:19:15 -0700 |
commit | 83e0d1762ed96c5fa142c14546b1f188f8d68ec6 (patch) | |
tree | 9dc92ffb5949ff8e81b6d85b4441921d4571b0b7 /tools | |
parent | 38cb7aa3815748c1d719e918718b7726a18ed1fc (diff) | |
download | python-numpy-83e0d1762ed96c5fa142c14546b1f188f8d68ec6.tar.gz python-numpy-83e0d1762ed96c5fa142c14546b1f188f8d68ec6.tar.bz2 python-numpy-83e0d1762ed96c5fa142c14546b1f188f8d68ec6.zip |
TEST: add module to test installed scripts
Module tests whether we can run f2py and return correct version.
Skip this test when running in-place (we don't install f2py in that
case).
Use our own virtualenvs in travis-ci to avoid picking up travis' numpy.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/travis-test.sh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tools/travis-test.sh b/tools/travis-test.sh index 3981c3b58..f31f1dc56 100755 --- a/tools/travis-test.sh +++ b/tools/travis-test.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -ex # travis boxes give you 1.5 cpus @@ -120,10 +120,17 @@ fi export PYTHON export PIP if [ -n "$USE_WHEEL" ] && [ $# -eq 0 ]; then - $PIP install --upgrade pip + # Build wheel $PIP install wheel $PYTHON setup.py bdist_wheel - $PIP install --pre --upgrade --find-links dist numpy + # Make another virtualenv to install into + virtualenv --python=python venv-for-wheel + . venv-for-wheel/bin/activate + # Move out of source directory to avoid finding local numpy + pushd dist + $PIP install --pre --upgrade --find-links . numpy + $PIP install nose + popd run_test elif [ "$USE_CHROOT" != "1" ] && [ "$USE_BENTO" != "1" ]; then setup_base |