Skip to content

Commit

Permalink
Fix conda url in travis (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
umesh-timalsina committed Apr 10, 2020
1 parent 72c0f07 commit 9e287d3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions devtools/travis-ci/install_conda.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/bin/bash

CONDA_URL=https://repo.anaconda.com/miniconda

if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then MINICONDA=Miniconda3-latest-MacOSX-x86_64.sh; fi
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then MINICONDA=Miniconda3-latest-Linux-x86_64.sh; fi

MINICONDA_MD5=$(curl -s https://repo.continuum.io/miniconda/ | grep -A3 $MINICONDA | sed -n '4p' | sed -n 's/ *<td>\(.*\)<\/td> */\1/p')
curl -O https://repo.continuum.io/miniconda/$MINICONDA
MINICONDA_MD5=$(curl -sL $CONDA_URL | grep -A3 $MINICONDA | sed -n '4p' | sed -n 's/ *<td>\(.*\)<\/td> */\1/p')

curl -O $CONDA_URL/$MINICONDA

if [[ $MINICONDA_MD5 != $(md5sum $MINICONDA | cut -d ' ' -f 1) ]]; then
echo "Miniconda MD5 mismatch"
exit 1
Expand All @@ -15,4 +19,4 @@ rm -f $MINICONDA
export PATH=$HOME/miniconda3/bin:$PATH

conda update -yq conda
conda install -yq conda-build jinja2
conda install -yq conda-build jinja2

0 comments on commit 9e287d3

Please sign in to comment.