Skip to content

CI: remove caching for miniconda itself #15722

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 17, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ language: python
# The cash directories will be deleted if anything in ci/ changes in a commit
cache:
directories:
- $HOME/miniconda3 # miniconda cache
- $HOME/.cache # cython cache
- $HOME/.ccache # compiler cache

Expand Down
25 changes: 10 additions & 15 deletions ci/install_travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,19 @@ echo "[home_dir: $home_dir]"
# install miniconda
MINICONDA_DIR="$HOME/miniconda3"

if [ "$USE_CACHE" ] && [ -d "$MINICONDA_DIR/bin" ]; then
echo "[Using cached Miniconda install]"
echo "[Using clean Miniconda install]"

else
echo "[Using clean Miniconda install]"

if [ -d "$MINICONDA_DIR" ]; then
rm -rf "$MINICONDA_DIR"
fi
if [ -d "$MINICONDA_DIR" ]; then
rm -rf "$MINICONDA_DIR"
fi

# install miniconda
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
time wget http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh || exit 1
else
time wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh || exit 1
fi
time bash miniconda.sh -b -p "$MINICONDA_DIR" || exit 1
# install miniconda
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
time wget http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh || exit 1
else
time wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh || exit 1
fi
time bash miniconda.sh -b -p "$MINICONDA_DIR" || exit 1

echo "[show conda]"
which conda
Expand Down