Skip to content

Commit 8248659

Browse files
committed
add conda fixes
1 parent 3926acb commit 8248659

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.azure-pipelines/azure-pipelines.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ jobs:
1111
pool:
1212
vmImage: macOS-10.14
1313
steps:
14+
# Add conda to bash
15+
- bash: echo "##vso[task.prependpath]$CONDA/bin"
16+
displayName: Add conda to PATH
17+
18+
# On Hosted macOS, the agent user doesn't have ownership of Miniconda's installation directory/
19+
# We need to take ownership if we want to update conda or install packages globally
20+
- bash: sudo chown -R $USER $CONDA
21+
displayName: Take ownership of conda installation
1422
- template: templates/setup-script.yml
1523
- template: templates/nb-docs.yml
1624

@@ -26,5 +34,7 @@ jobs:
2634
pool:
2735
vmImage: ubuntu-16.04
2836
steps:
37+
- bash: echo "##vso[task.prependpath]$CONDA/bin"
38+
displayName: Add conda to PATH
2939
- template: templates/setup-script.yml
3040
- template: templates/nb-docs.yml

0 commit comments

Comments
 (0)