-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconda-enable.yml
28 lines (23 loc) · 1.04 KB
/
conda-enable.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
steps:
# install conda for mac
- bash: brew install miniforge && ls /usr/local/Caskroom/miniforge/base/bin
displayName: 'MacOS install miniforge'
condition: eq( variables['Agent.OS'], 'Darwin' )
#activate conda
- bash: echo "##vso[task.prependpath]/usr/local/Caskroom/miniforge/base/bin"
condition: eq( variables['Agent.OS'], 'Darwin' )
displayName: 'Add conda to PATH - OSX'
- bash: echo "##vso[task.prependpath]$CONDA/bin"
condition: eq( variables['Agent.OS'], 'Linux' )
displayName: 'Add conda to PATH - Linux'
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
condition: eq( variables['Agent.OS'], 'Windows_NT' )
displayName: 'Add conda to PATH - Windows'
# install mamba
- bash: |
conda config --set anaconda_upload yes --set always_yes yes --set solver libmamba && \
conda config --add channels conda-forge && \
conda install -c conda-forge -q mamba=1.5 conda-devenv libsolv conda-libmamba-solver && \
mamba info && \
mamba list
displayName: 'Install mamba, boa; report config and info'