Skip to content
This repository was archived by the owner on Feb 15, 2023. It is now read-only.

Commit fd7ab85

Browse files
committed
MAINT: revise PR 68
* the new bash "if" block for weekly wheels uploads has been adjusted to remove comments from inside the block & place them before, which seems to help the syntax parser * miniconda is installed so that "conda" command may be used * the version of miniconda is now conditioned on platform & 32- vs. 64-bit arch
1 parent 2267f51 commit fd7ab85

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

.travis.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,30 @@ after_success:
7373
# Upload may not work for Python 3.7:
7474
# https://github.com/ogrisel/wheelhouse-uploader/issues/27
7575
- pip install wheelhouse-uploader
76+
# conda will be used to handle uploads
77+
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
78+
if [ "$PLAT" != "i686" ]; then
79+
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
80+
else
81+
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86.sh -O miniconda.sh;
82+
fi
83+
else
84+
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
85+
fi
86+
- bash miniconda.sh -b -p $HOME/miniconda
87+
- source "$HOME/miniconda/etc/profile.d/conda.sh"
88+
- conda config --set always_yes yes --set changeps1 no
89+
- conda update -q conda
90+
- conda info -a
91+
# trigger an upload to the shared ecosystem
92+
# infrastructure at: https://anaconda.org/scipy-wheels-nightly
93+
# for cron jobs only (restricted to master branch once
94+
# per week)
95+
# SCIPY_WHEELS_NIGHTLY is a secret token
96+
# used in Travis CI config, originally
97+
# generated at anaconda.org for scipy-wheels-nightly
7698
- if [ "$TRAVIS_EVENT_TYPE" != "cron" ]; then
77-
# trigger an upload to the shared ecosystem
78-
# infrastructure at: https://anaconda.org/scipy-wheels-nightly
7999
ANACONDA_ORG="scipy-wheels-nightly";
80100
conda install -q -y anaconda-client;
81-
# SCIPY_WHEELS_NIGHTLY is a secret token
82-
# used in Travis CI config, originally
83-
# generated at anaconda.org for scipy-wheels-nightly
84101
anaconda -t ${SCIPY_WHEELS_NIGHTLY} upload --force -u ${ANACONDA_ORG} ${TRAVIS_BUILD_DIR}/wheelhouse/*.whl;
85102
fi

0 commit comments

Comments
 (0)