diff --git a/.travis.yml b/.travis.yml index a76f319..6b6b793 100644 --- a/.travis.yml +++ b/.travis.yml @@ -116,9 +116,26 @@ script: - install_run $PLAT after_success: - # Upload wheels to Rackspace container - - pip install wheelhouse-uploader - - python -m wheelhouse_uploader upload --local-folder - ${TRAVIS_BUILD_DIR}/wheelhouse/ - $UPLOAD_ARGS - $CONTAINER + # trigger an upload to the shared ecosystem + # infrastructure at: https://anaconda.org/scipy-wheels-nightly + # for cron jobs only (restricted to master branch once + # per week) + # MATPLOTLIB_WHEELS_NIGHTLY is a secret token + # used in Travis CI config, originally + # generated at anaconda.org for scipy-wheels-nightly + - if [ "$TRAVIS_EVENT_TYPE" == "cron" ]; then + source extra_functions.sh + for f in wheelhouse/*.whl; do rename_wheel $f; done; + ANACONDA_ORG="scipy-wheels-nightly" + pip install git+https://github.com/Anaconda-Server/anaconda-client; + anaconda -t ${SCIPY_WHEELS_NIGHTLY_ACCESS} upload --force -u ${ANACONDA_ORG} ${TRAVIS_BUILD_DIR}/wheelhouse/*.whl; + fi + # for merges (push events) we use the staging area instead; + # MATPLOTLIB_STAGING_UPLOAD_TOKEN is a secret token used in Travis + # CI config, originally generated at anaconda.org for + # multibuild-wheels-staging + - if [ "$TRAVIS_EVENT_TYPE" == "push" ]; then + ANACONDA_ORG="multibuild-wheels-staging" + pip install git+https://github.com/Anaconda-Server/anaconda-client; + anaconda -t ${MULTIBUILD_WHEELS_STAGING_ACCESS} upload --force -u ${ANACONDA_ORG} ${TRAVIS_BUILD_DIR}/wheelhouse/*.whl; + fi