Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MRG] Using Mamba in Pipelines #1210

Merged
merged 21 commits into from
Jul 19, 2020
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions azure-pipelines/simple_test_framework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:
maxParallel: 4

steps:
- bash: |
echo "##vso[task.setvariable variable=shellopts]errexit"
displayName: "Force exit on error (bash) "

epassaro marked this conversation as resolved.
Show resolved Hide resolved
- bash: |
echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
Expand Down
2 changes: 2 additions & 0 deletions ci-helpers/install_miniconda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ if test -e $HOME/miniconda/bin; then
hash -r
#conda update --yes conda


else
wget $MINICONDA_URL -O miniconda.sh
chmod +x miniconda.sh
Expand All @@ -15,6 +16,7 @@ else
export PATH=$HOME/miniconda/bin:$PATH
hash -r
conda update --yes conda

fi

source $HOME/miniconda/etc/profile.d/conda.sh
15 changes: 14 additions & 1 deletion ci-helpers/install_tardis_env.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
#!/usr/bin/env bash
cd $TARDIS_BUILD_DIR

# install mamba
if test -e $HOME/miniconda/bin/mamba; then
echo "Mamba installed Succesfuly"

else
echo "Mamba not installed"
conda install mamba=0.4.0 -c conda-forge -y
echo "Installed Mamba to correct location"
fi

if test -e $HOME/miniconda/envs/tardis; then
echo "TARDIS env already installed.";
# Also check for tardis_env3.yml change
else
conda env create -f tardis_env3.yml
# conda env create -f tardis_env3.yml
echo "Creating TARDIS environment using Mamba"
mamba env create -f tardis_env3.yml
#trouble with building due to segfault at cython (https://github.com/cython/cython/issues/2199)
#remove if we can get normal cython through conda
fi