Skip to content

Commit 246e583

Browse files
committed
added windows
1 parent 37d4941 commit 246e583

File tree

1 file changed

+33
-15
lines changed

1 file changed

+33
-15
lines changed

.azure-pipelines/azure-pipelines.yml

Lines changed: 33 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
jobs:
2-
- job: macpy37
3-
variables:
4-
python.version: "3.7"
2+
- job: macOS
3+
strategy:
4+
matrix:
5+
py37:
6+
python.version: "3.7"
7+
py36:
8+
python.version: "3.6"
59
pool:
610
vmImage: macOS-10.14
711
steps:
8-
- template: templates/conda-mac.yml
9-
- template: templates/setup-script.yml
10-
- template: templates/nb-docs.yml
12+
# https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/anaconda?view=azure-devops&tabs=macos
13+
- bash: echo "##vso[task.prependpath]$CONDA/bin"
14+
displayName: Add conda to PATH
15+
16+
# On Hosted macOS, the agent user doesn't have ownership of Miniconda's installation directory/
17+
# We need to take ownership if we want to update conda or install packages globally
18+
- bash: sudo chown -R $USER $CONDA
19+
displayName: Take ownership of conda installation
1120

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
1921
- template: templates/setup-script.yml
2022
- template: templates/nb-docs.yml
2123

@@ -26,13 +28,29 @@ jobs:
2628
python.version: "3.7"
2729
py36:
2830
python.version: "3.6"
29-
variables:
30-
miniconda.url: https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
3131
pool:
3232
vmImage: ubuntu-16.04
3333
steps:
3434
# https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/anaconda?view=azure-devops&tabs=ubuntu-16-04
3535
- bash: echo "##vso[task.prependpath]$CONDA/bin"
3636
displayName: Add conda to PATH
37+
38+
- template: templates/setup-script.yml
39+
- template: templates/nb-docs.yml
40+
41+
- job: windows
42+
strategy:
43+
matrix:
44+
py37:
45+
python.version: "3.7"
46+
py36:
47+
python.version: "3.6"
48+
pool:
49+
vmImage: windows-2019
50+
steps:
51+
# https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/anaconda?view=azure-devops&tabs=vs2017
52+
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
53+
displayName: Add conda to PATH
54+
3755
- template: templates/setup-script.yml
3856
- template: templates/nb-docs.yml

0 commit comments

Comments
 (0)