Skip to content

Commit 052339e

Browse files
committed
refactored mac pipeline
1 parent 8248659 commit 052339e

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

.azure-pipelines/azure-pipelines.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
11
jobs:
2-
- job: macOS
3-
strategy:
4-
matrix:
5-
py37:
6-
python.version: "3.7"
7-
py36:
8-
python.version: "3.6"
2+
- job: macpy37
93
variables:
10-
miniconda.url: https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
4+
python.version: "3.7"
115
pool:
126
vmImage: macOS-10.14
137
steps:
14-
# Add conda to bash
15-
- bash: echo "##vso[task.prependpath]$CONDA/bin"
16-
displayName: Add conda to PATH
8+
- template: templates/conda-mac.yml
9+
- template: templates/setup-script.yml
10+
- template: templates/nb-docs.yml
1711

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
12+
- job: macpy36
13+
variables:
14+
python.version: "3.6"
15+
pool:
16+
vmImage: macOS-10.14
17+
steps:
18+
- template: templates/conda-mac.yml
2219
- template: templates/setup-script.yml
2320
- template: templates/nb-docs.yml
2421

@@ -34,6 +31,7 @@ jobs:
3431
pool:
3532
vmImage: ubuntu-16.04
3633
steps:
34+
# https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/anaconda?view=azure-devops&tabs=ubuntu-16-04
3735
- bash: echo "##vso[task.prependpath]$CONDA/bin"
3836
displayName: Add conda to PATH
3937
- template: templates/setup-script.yml

0 commit comments

Comments
 (0)