-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit 'd93f1e3bd407e5d17441565bb7e7cfbc8f90d6e8'
- Loading branch information
Showing
9 changed files
with
126 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# begin installing miniconda | ||
if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then | ||
echo "installing miniconda for posix"; | ||
bash $HOME/download/miniconda.sh -b -u -p $MINICONDA_PATH; | ||
elif [[ "$TRAVIS_OS_NAME" == "windows" ]]; then | ||
echo "folder $MINICONDA_SUB_PATH does not exist" | ||
echo "installing miniconda for windows"; | ||
choco install miniconda3 --params="'/JustMe /AddToPath:1 /D:$MINICONDA_PATH_WIN'"; | ||
fi; | ||
# end installing miniconda | ||
|
||
export PATH="$MINICONDA_PATH:$MINICONDA_SUB_PATH:$MINICONDA_LIB_BIN_PATH:$PATH"; | ||
|
||
# begin checking miniconda existance | ||
echo "checking if folder $MINICONDA_SUB_PATH exists" | ||
if [[ -d $MINICONDA_SUB_PATH ]]; then | ||
echo "folder $MINICONDA_SUB_PATH exists" | ||
else | ||
echo "folder $MINICONDA_SUB_PATH does not exist" | ||
fi; | ||
# end checking miniconda existance | ||
|
||
source $MINICONDA_PATH/etc/profile.d/conda.sh; | ||
hash -r; | ||
echo $TRAVIS_OS_NAME | ||
echo $PYTHON_VERSION | ||
python --version | ||
|
||
if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then | ||
echo "Removing mpi4py from environment for windows build" | ||
echo "Package not available in conda channels" | ||
sed -i '/mpi4py/d' ./tcrmenv.yml | ||
fi | ||
|
||
conda config --set always_yes yes --set changeps1 no; | ||
conda update -q conda; | ||
conda config --add channels conda-forge; | ||
conda config --set channel_priority strict; | ||
# Useful for debugging any issues with conda | ||
conda info -a | ||
|
||
echo "Create TCRM environment" | ||
conda env create -q -f tcrmenv.yml python=$PYTHON_VERSION; | ||
conda activate tcrm | ||
python --version | ||
conda list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then | ||
export MINICONDA_PATH=$HOME/miniconda; | ||
export MINICONDA_SUB_PATH=$MINICONDA_PATH/bin; | ||
elif [[ "$TRAVIS_OS_NAME" == "windows" ]]; then | ||
export MINICONDA_PATH=$HOME/miniconda; | ||
export MINICONDA_PATH_WIN=`cygpath --windows $MINICONDA_PATH`; | ||
export MINICONDA_SUB_PATH=$MINICONDA_PATH/Scripts; | ||
fi; | ||
export MINICONDA_LIB_BIN_PATH=$MINICONDA_PATH/Library/bin; | ||
# Obtain miniconda installer | ||
if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then | ||
mkdir -p $HOME/download; | ||
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then | ||
echo "downloading miniconda.sh for linux"; | ||
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O $HOME/download/miniconda.sh; | ||
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then | ||
echo "downloading miniconda.sh for osx"; | ||
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O $HOME/download/miniconda.sh; | ||
fi; | ||
fi; | ||
# Install openssl for Windows | ||
if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then | ||
choco install openssl.light; | ||
fi; |
Oops, something went wrong.