#!/bin/bash

set -x
set -e

CONDA_PATH=${1:-~/conda}

wget -c https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod a+x Miniconda3-latest-Linux-x86_64.sh
if [ ! -d $CONDA_PATH -o ! -z "$CI"  ]; then
        ./Miniconda3-latest-Linux-x86_64.sh -p $CONDA_PATH -b -f
fi
export PATH=$CONDA_PATH/bin:$PATH
conda update -y conda
conda install -y conda-build==2.1.17
echo "conda-build==2.1.17" > $CONDA_PATH/conda-meta/pinned
conda install -y anaconda-client
conda install -y jinja2

#!/bin/bash

set -x
set -e

CONDA_PATH=${1:-~/conda}

wget -c https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod a+x Miniconda3-latest-Linux-x86_64.sh
if [ ! -d $CONDA_PATH -o ! -z "$CI"  ]; then
        ./Miniconda3-latest-Linux-x86_64.sh -p $CONDA_PATH -b -f
fi
export PATH=$CONDA_PATH/bin:$PATH
conda update -y conda
if [ ! -z "$CONDA_BUILD_VERSION" ]; then
	conda install -y conda-build==$CONDA_BUILD_VERSION
	echo "conda-build==$CONDA_BUILD_VERSION" > $CONDA_PATH/conda-meta/pinned
else
	conda install -y conda-build
fi
conda install -y anaconda-client
conda install -y jinja2

Allow conda build version to be forced.
scripts: Allow conda build version to be forced.
