File tree Expand file tree Collapse file tree 3 files changed +26
-5
lines changed Expand file tree Collapse file tree 3 files changed +26
-5
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,13 @@ matrix:
48
48
- python3-nose
49
49
- python : 2.7
50
50
env : NPY_RELAXED_STRIDES_CHECKING=0 PYTHON_OO=1
51
- - python : 2.7
52
- env : USE_WHEEL=1
51
+ - python : 3.5
52
+ env :
53
+ - USE_WHEEL=1
54
+ - WHEELHOUSE_UPLOADER_USERNAME=travis.numpy
55
+ # The following is generated with the command:
56
+ # travis encrypt -r numpy/numpy WHEELHOUSE_UPLOADER_SECRET=tH3AP1KeY
57
+ - secure : " IEicLPrP2uW+jW51GRwkONQpdPqMVtQL5bdroqR/U8r9TrXrbCVRhp4AP8JYZT0ptoBpmZWWGjmKBndB68QlMiUjQPowiFWt9Ka92CaqYdU7nqfWp9VImSndPmssjmCXJ1v1IjZPAMahp7Qnm0rWRmA0z9SomuRUQOJQ6s684vU="
53
58
- python : 2.7
54
59
env : PYTHONOPTIMIZE=2
55
60
before_install :
@@ -73,3 +78,6 @@ before_install:
73
78
74
79
script :
75
80
- ./tools/travis-test.sh
81
+
82
+ after_success :
83
+ - ./tools/travis-upload-wheel.sh
Original file line number Diff line number Diff line change @@ -94,14 +94,16 @@ export PIP
94
94
if [ -n " $USE_WHEEL " ] && [ $# -eq 0 ]; then
95
95
# Build wheel
96
96
$PIP install wheel
97
+ # ensure that the pip / setuptools versions deployed inside the venv are recent enough
98
+ $PIP install -U virtualenv
97
99
$PYTHON setup.py bdist_wheel
98
100
# Make another virtualenv to install into
99
- virtualenv --python=python venv-for-wheel
101
+ virtualenv --python=` which $PYTHON ` venv-for-wheel
100
102
. venv-for-wheel/bin/activate
101
103
# Move out of source directory to avoid finding local numpy
102
104
pushd dist
103
- $PIP install --pre --no-index --upgrade --find-links=. numpy
104
- $PIP install nose
105
+ pip install --pre --no-index --upgrade --find-links=. numpy
106
+ pip install nose
105
107
popd
106
108
run_test
107
109
elif [ " $USE_CHROOT " != " 1" ]; then
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -ex
3
+
4
+ export CLOUD_CONTAINER_NAME=travis-dev-wheels
5
+
6
+ if [[ ( $USE_WHEEL == 1 ) && \
7
+ ( " $TRAVIS_BRANCH " == " master" ) && \
8
+ ( " $TRAVIS_PULL_REQUEST " == " false" ) ]]; then
9
+ pip install wheelhouse_uploader
10
+ python -m wheelhouse_uploader upload --local-folder $TRAVIS_BUILD_DIR /dist/ $CLOUD_CONTAINER_NAME
11
+ fi
You can’t perform that action at this time.
0 commit comments