Raw File
Tip revision: 5e2a4940796f4bd063315dc5d614b3e0176c6df9 authored by Paul La Plante on 24 March 2020, 21:36 UTC
Update changelog for new version
Tip revision: 5e2a494
set -xe

# want 1 script to rule them all
# but this part is not needed on MACOS
if [[ ! $OS == 'macos-latest' ]]; then
  if [ ! -z "$WITH_SUDO" ]; then
    sudo apt-get update
    sudo apt-get install -y gcc g++ curl
    apt-get update
    apt-get install -y gcc g++ curl
conda config --set always_yes yes --set changeps1 no
conda update -q conda
conda info -a
conda create --name=${ENV_NAME}  python=$PYTHON --quiet
conda env update -n ${ENV_NAME} -f ci/${ENV_NAME}.yml
source activate ${ENV_NAME}

# Mac OSX is having some trouble on python 3.8 with ncurses
# not being up to date. Trye manually updating it.
if [[ $OS == 'macos-latest' ]]; then
conda update -n ${ENV_NAME} -c conda-forge ncurses

conda list -n ${ENV_NAME}
# check that the python version matches the desired one; exit immediately if not
PYVER=`python -c "from __future__ import print_function; import sys; print('{:d}.{:d}'.format(sys.version_info.major, sys.version_info.minor))"`
if [[ $PYVER != $PYTHON ]]; then
  exit 1;
back to top