Skip to content

Commit

Permalink
Merge pull request #375 from tyarkoni/fix-miniconda-failures
Browse files Browse the repository at this point in the history
Try conditional caching of miniconda
  • Loading branch information
adelavega committed Feb 6, 2020
2 parents 4622fd3 + 1e573e2 commit 633c4bd
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,15 @@ before_install:
- sudo apt-get install libavformat-dev libavfilter-dev libavdevice-dev ffmpeg libmp3lame-dev tesseract-ocr graphviz cmake
- export MINICONDA=$HOME/miniconda
- export PATH="$MINICONDA/bin:$PATH"
- wget $MINICONDA_URL -O miniconda.sh;
- bash miniconda.sh -b -f -p $MINICONDA;
- if test -e $MINICONDA/bin ; then
echo "miniconda already installed.";
else
echo "Installing miniconda.";
rm -rf $HOME/miniconda;
if [[ -d $HOME/miniconda.sh ]]; then rm -rf $HOME/miniconda.sh; fi;
wget $MINICONDA_URL -O miniconda.sh;
bash miniconda.sh -b -f -p $MINICONDA;
fi
- hash -r
- conda info -a
- conda config --set always_yes yes --set changeps1 no
Expand Down

0 comments on commit 633c4bd

Please sign in to comment.