|
1 |
| -variables: |
2 |
| - InstallAsyncRequirements: true |
3 |
| - |
4 | 1 | jobs:
|
5 |
| - - job: |
6 |
| - strategy: |
7 |
| - matrix: |
8 |
| - Python_27_Linux (AzureCloud): |
9 |
| - PythonVersion: '2.7' |
10 |
| - InstallAsyncRequirements: false |
11 |
| - OSVmImage: ubuntu-18.04 |
12 |
| - SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) |
13 |
| - ArmTemplateParameters: $(azureCloudArmParameters) |
14 |
| - Python_37_Linux (AzureCloud): |
15 |
| - PythonVersion: '3.7' |
16 |
| - OSVmImage: ubuntu-18.04 |
17 |
| - SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) |
18 |
| - ArmTemplateParameters: $(azureCloudArmParameters) |
19 |
| - Python_38_Linux (AzureCloud): |
20 |
| - PythonVersion: '3.8' |
21 |
| - OSVmImage: ubuntu-18.04 |
22 |
| - SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) |
23 |
| - ArmTemplateParameters: $(azureCloudArmParameters) |
24 |
| - Python_38_Linux (AzureCloud Canary): |
25 |
| - PythonVersion: '3.8' |
26 |
| - OSVmImage: ubuntu-18.04 |
27 |
| - SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources-preview) |
28 |
| - ArmTemplateParameters: $(azureCloudArmParameters) |
29 |
| - Location: 'eastus2euap' |
30 |
| - Python_37_Windows (AzureCloud): |
31 |
| - PythonVersion: '3.7' |
32 |
| - OSVmImage: windows-2019 |
33 |
| - SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) |
34 |
| - ArmTemplateParameters: $(azureCloudArmParameters) |
35 |
| - Python_38_Windows (AzureCloud): |
36 |
| - PythonVersion: '3.8' |
37 |
| - OSVmImage: windows-2019 |
38 |
| - SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) |
39 |
| - ArmTemplateParameters: $(azureCloudArmParameters) |
40 |
| - Python_37_Mac (AzureCloud): |
41 |
| - PythonVersion: '3.7' |
42 |
| - OSVmImage: macOS-10.15 |
43 |
| - SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) |
44 |
| - ArmTemplateParameters: $(azureCloudArmParameters) |
45 |
| - Python_38_Mac (AzureCloud): |
46 |
| - PythonVersion: '3.8' |
47 |
| - OSVmImage: macOS-10.15 |
48 |
| - SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) |
49 |
| - ArmTemplateParameters: $(azureCloudArmParameters) |
50 |
| - Python_38_Linux (AzureUSGovernment): |
51 |
| - PythonVersion: '3.8' |
52 |
| - OSVmImage: ubuntu-18.04 |
53 |
| - SubscriptionConfiguration: $(sub-config-gov-test-resources) |
54 |
| - ArmTemplateParameters: $(azureUSGovernmentArmParameters) |
55 |
| - Python_37_Windows (AzureUSGovernment): |
56 |
| - PythonVersion: '3.7' |
57 |
| - OSVmImage: windows-2019 |
58 |
| - SubscriptionConfiguration: $(sub-config-gov-test-resources) |
59 |
| - ArmTemplateParameters: $(azureUSGovernmentArmParameters) |
60 |
| - Python_38_Linux (AzureChinaCloud): |
61 |
| - PythonVersion: '3.8' |
62 |
| - OSVmImage: ubuntu-18.04 |
63 |
| - SubscriptionConfiguration: $(sub-config-cn-test-resources) |
64 |
| - Location: 'chinanorth' |
65 |
| - ArmTemplateParameters: $(azureChinaCloudArmParameters) |
66 |
| - Python_37_Windows (AzureChinaCloud): |
67 |
| - PythonVersion: '3.7' |
68 |
| - OSVmImage: windows-2019 |
69 |
| - SubscriptionConfiguration: $(sub-config-cn-test-resources) |
70 |
| - Location: 'chinanorth' |
71 |
| - ArmTemplateParameters: $(azureChinaCloudArmParameters) |
72 |
| - |
73 |
| - pool: |
74 |
| - vmImage: $(OSVmImage) |
75 |
| - |
76 |
| - variables: |
77 |
| - Location: '' |
78 |
| - azureCloudArmParameters: "@{ storageEndpointSuffix = 'core.windows.net'; azureCloud = 'AzureCloud'; }" |
79 |
| - azureUSGovernmentArmParameters: "@{ storageEndpointSuffix = 'core.usgovcloudapi.net'; azureCloud = 'AzureUSGovernment'; }" |
80 |
| - azureChinaCloudArmParameters: "@{ storageEndpointSuffix = 'core.chinacloudapi.cn'; azureCloud = 'AzureChinaCloud'; }" |
81 |
| - |
82 |
| - steps: |
83 |
| - - task: UsePythonVersion@0 |
84 |
| - displayName: "Use Python $(PythonVersion)" |
85 |
| - inputs: |
86 |
| - versionSpec: $(PythonVersion) |
87 |
| - |
88 |
| - - script: | |
89 |
| - python -m pip install pip==20.0.2 |
90 |
| - pip --version |
91 |
| - displayName: pip --version |
92 |
| -
|
93 |
| - - script: pip install -r ./common/smoketest/requirements.txt --pre --no-deps --index-url https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple |
94 |
| - displayName: Install requirements from dev feed without dependencies |
95 |
| - |
96 |
| - - script: pip install -r ./common/smoketest/requirements_async.txt |
97 |
| - displayName: "Install requirements_async.txt" |
98 |
| - condition: and(succeeded(), eq(variables['InstallAsyncRequirements'], 'true')) |
99 |
| - |
100 |
| - - script: python ./common/smoketest/dependencies.py -r ./common/smoketest/requirements.txt | tee ./common/smoketest/requirements_dependencies.txt |
101 |
| - displayName: Create dependency list from installed dev packages |
102 |
| - |
103 |
| - - script: pip install -r ./common/smoketest/requirements_dependencies.txt |
104 |
| - displayName: Install dev package dependencies from PyPI |
105 |
| - |
106 |
| - - script: pip freeze |
107 |
| - displayName: Show installed packages (pip freeze) |
108 |
| - |
109 |
| - - template: /eng/common/TestResources/deploy-test-resources.yml |
110 |
| - parameters: |
111 |
| - ServiceDirectory: '$(Build.SourcesDirectory)/common/smoketest/' |
112 |
| - SubscriptionConfiguration: $(SubscriptionConfiguration) |
113 |
| - Location: $(Location) |
114 |
| - ArmTemplateParameters: $(ArmTemplateParameters) |
115 |
| - |
116 |
| - - script: python ./common/smoketest/program.py |
117 |
| - displayName: Run Smoke Test |
118 |
| - |
119 |
| - - template: /eng/common/TestResources/remove-test-resources.yml |
120 |
| - parameters: |
121 |
| - ServiceDirectory: '$(Build.SourcesDirectory)/common/smoketest/' |
122 |
| - SubscriptionConfiguration: $(SubscriptionConfiguration) |
123 |
| - |
| 2 | + - template: /eng/pipelines/templates/jobs/smoke-test.yml |
| 3 | + parameters: |
| 4 | + Daily: true |
0 commit comments