Skip to content

Commit a1b118c

Browse files
authored
CI: remove caching for miniconda itself (pandas-dev#15722)
1 parent ad3d886 commit a1b118c

File tree

2 files changed

+10
-16
lines changed

2 files changed

+10
-16
lines changed

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ language: python
88
# The cash directories will be deleted if anything in ci/ changes in a commit
99
cache:
1010
directories:
11-
- $HOME/miniconda3 # miniconda cache
1211
- $HOME/.cache # cython cache
1312
- $HOME/.ccache # compiler cache
1413

ci/install_travis.sh

+10-15
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,19 @@ echo "[home_dir: $home_dir]"
3535
# install miniconda
3636
MINICONDA_DIR="$HOME/miniconda3"
3737

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

41-
else
42-
echo "[Using clean Miniconda install]"
43-
44-
if [ -d "$MINICONDA_DIR" ]; then
45-
rm -rf "$MINICONDA_DIR"
46-
fi
40+
if [ -d "$MINICONDA_DIR" ]; then
41+
rm -rf "$MINICONDA_DIR"
42+
fi
4743

48-
# install miniconda
49-
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
50-
time wget http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh || exit 1
51-
else
52-
time wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh || exit 1
53-
fi
54-
time bash miniconda.sh -b -p "$MINICONDA_DIR" || exit 1
44+
# install miniconda
45+
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
46+
time wget http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh || exit 1
47+
else
48+
time wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh || exit 1
5549
fi
50+
time bash miniconda.sh -b -p "$MINICONDA_DIR" || exit 1
5651

5752
echo "[show conda]"
5853
which conda

0 commit comments

Comments
 (0)