Skip to content
This repository was archived by the owner on Apr 16, 2021. It is now read-only.

Commit 490759c

Browse files
authored
Merge pull request #14 from janaknat/master
Change upload process and upload to anaconda
2 parents 3360afb + 5bfdb75 commit 490759c

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

.travis.yml

+23-6
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,26 @@ script:
116116
- install_run $PLAT
117117

118118
after_success:
119-
# Upload wheels to Rackspace container
120-
- pip install wheelhouse-uploader
121-
- python -m wheelhouse_uploader upload --local-folder
122-
${TRAVIS_BUILD_DIR}/wheelhouse/
123-
$UPLOAD_ARGS
124-
$CONTAINER
119+
# trigger an upload to the shared ecosystem
120+
# infrastructure at: https://anaconda.org/scipy-wheels-nightly
121+
# for cron jobs only (restricted to master branch once
122+
# per week)
123+
# MATPLOTLIB_WHEELS_NIGHTLY is a secret token
124+
# used in Travis CI config, originally
125+
# generated at anaconda.org for scipy-wheels-nightly
126+
- if [ "$TRAVIS_EVENT_TYPE" == "cron" ]; then
127+
source extra_functions.sh
128+
for f in wheelhouse/*.whl; do rename_wheel $f; done;
129+
ANACONDA_ORG="scipy-wheels-nightly"
130+
pip install git+https://github.com/Anaconda-Server/anaconda-client;
131+
anaconda -t ${SCIPY_WHEELS_NIGHTLY_ACCESS} upload --force -u ${ANACONDA_ORG} ${TRAVIS_BUILD_DIR}/wheelhouse/*.whl;
132+
fi
133+
# for merges (push events) we use the staging area instead;
134+
# MATPLOTLIB_STAGING_UPLOAD_TOKEN is a secret token used in Travis
135+
# CI config, originally generated at anaconda.org for
136+
# multibuild-wheels-staging
137+
- if [ "$TRAVIS_EVENT_TYPE" == "push" ]; then
138+
ANACONDA_ORG="multibuild-wheels-staging"
139+
pip install git+https://github.com/Anaconda-Server/anaconda-client;
140+
anaconda -t ${MULTIBUILD_WHEELS_STAGING_ACCESS} upload --force -u ${ANACONDA_ORG} ${TRAVIS_BUILD_DIR}/wheelhouse/*.whl;
141+
fi

0 commit comments

Comments
 (0)