1
1
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"
5
9
pool :
6
10
vmImage : macOS-10.14
7
11
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
11
20
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
19
21
- template : templates/setup-script.yml
20
22
- template : templates/nb-docs.yml
21
23
@@ -26,13 +28,29 @@ jobs:
26
28
python.version : " 3.7"
27
29
py36 :
28
30
python.version : " 3.6"
29
- variables :
30
- miniconda.url : https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
31
31
pool :
32
32
vmImage : ubuntu-16.04
33
33
steps :
34
34
# https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/anaconda?view=azure-devops&tabs=ubuntu-16-04
35
35
- bash : echo "##vso[task.prependpath]$CONDA/bin"
36
36
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
+
37
55
- template : templates/setup-script.yml
38
56
- template : templates/nb-docs.yml
0 commit comments