File tree 1 file changed +16
-10
lines changed
1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -33,20 +33,26 @@ home_dir=$(pwd)
33
33
echo " [home_dir: $home_dir ]"
34
34
35
35
# install miniconda
36
- echo " [Using clean Miniconda install]"
37
-
38
36
MINICONDA_DIR=" $HOME /miniconda3"
39
- if [ -d " $MINICONDA_DIR " ]; then
40
- rm -rf " $MINICONDA_DIR "
41
- fi
42
37
43
- # install miniconda
44
- if [ " ${TRAVIS_OS_NAME} " == " osx " ] ; then
45
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh || exit 1
38
+ if [ " $USE_CACHE " ] && [ -d " $MINICONDA_DIR " ] ; then
39
+ echo " [Using cached Miniconda install] "
40
+
46
41
else
47
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh || exit 1
42
+ echo " [Using clean Miniconda install]"
43
+
44
+ if [ -d " $MINICONDA_DIR " ]; then
45
+ rm -rf " $MINICONDA_DIR "
46
+ fi
47
+
48
+ # install miniconda
49
+ if [ " ${TRAVIS_OS_NAME} " == " osx" ]; then
50
+ wget http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh || exit 1
51
+ else
52
+ wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh || exit 1
53
+ fi
54
+ bash miniconda.sh -b -p " $MINICONDA_DIR " || exit 1
48
55
fi
49
- bash miniconda.sh -b -p " $MINICONDA_DIR " || exit 1
50
56
51
57
echo " [update conda]"
52
58
conda config --set ssl_verify false || exit 1
You can’t perform that action at this time.
0 commit comments