summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorOlivier Grisel <olivier.grisel@ensta.org>2015-12-03 16:29:22 +0100
committerOlivier Grisel <olivier.grisel@ensta.org>2015-12-10 18:02:29 -0500
commit27abfb4923a3ff0433bb7f5dd08a42603641b519 (patch)
tree6a909c7bf5efcc1f1499f3b04c76092fba88a24b /tools
parente914ef2e5968de337e2f81dcdc1baa379b2145de (diff)
downloadnumpy-27abfb4923a3ff0433bb7f5dd08a42603641b519.tar.gz
ENH deploy dev wheels to rackspace
Diffstat (limited to 'tools')
-rwxr-xr-xtools/travis-test.sh8
-rwxr-xr-xtools/travis-upload-wheel.sh11
2 files changed, 16 insertions, 3 deletions
diff --git a/tools/travis-test.sh b/tools/travis-test.sh
index 795915d0b..af151f434 100755
--- a/tools/travis-test.sh
+++ b/tools/travis-test.sh
@@ -94,14 +94,16 @@ export PIP
if [ -n "$USE_WHEEL" ] && [ $# -eq 0 ]; then
# Build wheel
$PIP install wheel
+ # ensure that the pip / setuptools versions deployed inside the venv are recent enough
+ $PIP install -U virtualenv
$PYTHON setup.py bdist_wheel
# Make another virtualenv to install into
- virtualenv --python=python venv-for-wheel
+ virtualenv --python=`which $PYTHON` venv-for-wheel
. venv-for-wheel/bin/activate
# Move out of source directory to avoid finding local numpy
pushd dist
- $PIP install --pre --no-index --upgrade --find-links=. numpy
- $PIP install nose
+ pip install --pre --no-index --upgrade --find-links=. numpy
+ pip install nose
popd
run_test
elif [ "$USE_CHROOT" != "1" ]; then
diff --git a/tools/travis-upload-wheel.sh b/tools/travis-upload-wheel.sh
new file mode 100755
index 000000000..60b9aa7cb
--- /dev/null
+++ b/tools/travis-upload-wheel.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+set -ex
+
+export CLOUD_CONTAINER_NAME=travis-dev-wheels
+
+if [[ ( $USE_WHEEL == 1 ) && \
+ ( "$TRAVIS_BRANCH" == "master" ) && \
+ ( "$TRAVIS_PULL_REQUEST" == "false" ) ]]; then
+ pip install wheelhouse_uploader
+ python -m wheelhouse_uploader upload --local-folder $TRAVIS_BUILD_DIR/dist/ $CLOUD_CONTAINER_NAME
+fi