File tree Expand file tree Collapse file tree 4 files changed +5
-27
lines changed Expand file tree Collapse file tree 4 files changed +5
-27
lines changed Original file line number Diff line number Diff line change 8
8
apt : true
9
9
directories :
10
10
- $HOME/.cache/pip
11
- - $HOME/download
12
11
addons :
13
12
apt :
14
13
packages :
Original file line number Diff line number Diff line change @@ -96,22 +96,11 @@ if [[ `type -t deactivate` ]]; then
96
96
fi
97
97
98
98
# Install dependencies with miniconda
99
- pushd .
100
- cd
101
- mkdir -p download
102
- cd download
103
- echo " Cached in $HOME /download :"
104
- ls -l
105
- if [[ ! -f miniconda.sh ]]
106
- then
107
- wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh \
99
+ wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh \
108
100
-O miniconda.sh
109
- fi
110
101
chmod +x miniconda.sh && ./miniconda.sh -b -p $MINICONDA_PATH
111
- cd ..
112
102
export PATH=" $MINICONDA_PATH /bin:$PATH "
113
103
conda update --yes --quiet conda
114
- popd
115
104
116
105
# Configure the conda environment and put it in the path using the
117
106
# provided versions
Original file line number Diff line number Diff line change @@ -28,22 +28,13 @@ if [[ "$DISTRIB" == "conda" ]]; then
28
28
# conda-based environment instead
29
29
deactivate
30
30
31
- # Use the miniconda installer for faster download / install of conda
32
- # itself
33
- pushd .
34
- cd
35
- mkdir -p download
36
- cd download
37
- echo " Cached in $HOME /download :"
38
- ls -l
39
- echo
31
+ # Install miniconda
40
32
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh \
41
33
-O miniconda.sh
42
- chmod +x miniconda.sh && ./miniconda.sh -b -p /home/travis/miniconda
43
- cd ..
44
- export PATH=/home/travis/miniconda /bin:$PATH
34
+ MINICONDA_PATH= /home/travis/miniconda
35
+ chmod +x miniconda.sh && ./miniconda.sh -b -p $MINICONDA_PATH
36
+ export PATH=$MINICONDA_PATH /bin:$PATH
45
37
conda update --yes conda
46
- popd
47
38
48
39
# Configure the conda environment and put it in the path using the
49
40
# provided versions
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ dependencies:
11
11
cache_directories :
12
12
- " ~/scikit_learn_data"
13
13
- " ~/scikit-learn.github.io"
14
- - " ~/download"
15
14
# Check whether the doc build is required, install build dependencies and
16
15
# run sphinx to build the doc.
17
16
override :
You can’t perform that action at this time.
0 commit comments