Skip to content

Commit

Permalink
Adding conda to PATH in Azure
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Blumberg committed Feb 12, 2019
1 parent fc27d63 commit f2cb91d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ pool:

# Describe the steps to install conda, the code, do tests, and deploy the artifacts
steps:
- bash: echo "##vso[task.prependpath]/usr/share/miniconda/bin"
displayName: Add conda to PATH
condition: eq( variables['Agent.OS'], 'Linux')

- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
condition: eq( variables['Agent.OS'], 'Darwin')

- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName: Add conda to PATH
condition: eq( variables['Agent.OS'], 'Windows_NT')

# Setup the conda environment and install the needed packages (use conda-forge)
#- task: CondaEnvironment@1
Expand Down

0 comments on commit f2cb91d

Please sign in to comment.