2019-08-13 22:00:10 +03:00
|
|
|
jobs:
|
2019-09-19 21:27:23 +03:00
|
|
|
- job: SmokeTest
|
2020-01-17 01:40:08 +03:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-04-03 00:20:45 +03:00
|
|
|
Linux (AzureCloud):
|
2020-01-17 01:40:08 +03:00
|
|
|
OSVmImage: "ubuntu-18.04"
|
2020-05-16 06:37:59 +03:00
|
|
|
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources)
|
2020-04-03 00:20:45 +03:00
|
|
|
ArmTemplateParameters: $(azureCloudArmParameters)
|
|
|
|
Windows (AzureCloud):
|
2020-01-17 01:40:08 +03:00
|
|
|
OSVmImage: "windows-2019"
|
2020-05-16 06:37:59 +03:00
|
|
|
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources)
|
2020-04-03 00:20:45 +03:00
|
|
|
ArmTemplateParameters: $(azureCloudArmParameters)
|
|
|
|
Mac (AzureCloud):
|
2020-01-17 01:40:08 +03:00
|
|
|
OSVmImage: "macOS-10.14"
|
2020-05-16 06:37:59 +03:00
|
|
|
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources)
|
2020-04-03 00:20:45 +03:00
|
|
|
ArmTemplateParameters: $(azureCloudArmParameters)
|
|
|
|
Linux (AzureUSGovernment):
|
2020-03-15 01:44:39 +03:00
|
|
|
OSVmImage: "ubuntu-18.04"
|
2020-05-16 06:37:59 +03:00
|
|
|
SubscriptionConfiguration: $(sub-config-gov-test-resources)
|
2020-04-03 00:20:45 +03:00
|
|
|
ArmTemplateParameters: $(azureUSGovernmentArmParameters)
|
|
|
|
Windows (AzureUSGovernment):
|
2020-03-15 01:44:39 +03:00
|
|
|
OSVmImage: "windows-2019"
|
2020-05-16 06:37:59 +03:00
|
|
|
SubscriptionConfiguration: $(sub-config-gov-test-resources)
|
2020-04-03 00:20:45 +03:00
|
|
|
ArmTemplateParameters: $(azureUSGovernmentArmParameters)
|
|
|
|
Linux (AzureChinaCloud):
|
|
|
|
OSVmImage: "ubuntu-18.04"
|
2020-05-16 06:37:59 +03:00
|
|
|
SubscriptionConfiguration: $(sub-config-cn-test-resources)
|
2020-04-03 00:20:45 +03:00
|
|
|
ArmTemplateParameters: $(azureChinaCloudArmParameters)
|
|
|
|
Windows (AzureChinaCloud):
|
|
|
|
OSVmImage: "windows-2019"
|
2020-05-16 06:37:59 +03:00
|
|
|
SubscriptionConfiguration: $(sub-config-cn-test-resources)
|
2020-04-03 00:20:45 +03:00
|
|
|
ArmTemplateParameters: $(azureChinaCloudArmParameters)
|
2019-09-19 21:27:23 +03:00
|
|
|
|
|
|
|
pool:
|
2019-08-13 22:00:10 +03:00
|
|
|
vmImage: $(OSVmImage)
|
|
|
|
|
2020-01-17 01:40:08 +03:00
|
|
|
variables:
|
2020-01-18 01:20:15 +03:00
|
|
|
- template: ../../eng/pipelines/templates/variables/globals.yml
|
2020-04-09 03:34:24 +03:00
|
|
|
- name: Location
|
|
|
|
value: ""
|
2020-04-03 00:20:45 +03:00
|
|
|
- name: azureCloudArmParameters
|
|
|
|
value: "@{ storageEndpointSuffix = 'core.windows.net'; azureCloud = 'AzureCloud'; }"
|
|
|
|
- name: azureUSGovernmentArmParameters
|
|
|
|
value: "@{ storageEndpointSuffix = 'core.usgovcloudapi.net'; azureCloud = 'AzureUSGovernment'; }"
|
|
|
|
- name: azureChinaCloudArmParameters
|
|
|
|
value: "@{ storageEndpointSuffix = 'core.chinacloudapi.cn'; azureCloud = 'AzureChinaCloud'; }"
|
2020-01-17 01:40:08 +03:00
|
|
|
|
2019-08-13 22:00:10 +03:00
|
|
|
steps:
|
2020-06-12 19:23:30 +03:00
|
|
|
- template: ../../eng/pipelines/templates/steps/common.yml
|
2019-09-19 21:27:23 +03:00
|
|
|
|
|
|
|
- task: Npm@1
|
|
|
|
inputs:
|
|
|
|
command: install
|
2019-11-07 21:31:42 +03:00
|
|
|
workingDir: common/smoke-test/
|
2020-01-17 01:40:08 +03:00
|
|
|
displayName: Install packages
|
|
|
|
|
|
|
|
- task: Npm@1
|
|
|
|
inputs:
|
|
|
|
command: custom
|
2020-01-18 01:20:15 +03:00
|
|
|
customCommand: "list --depth=0"
|
2020-01-17 01:40:08 +03:00
|
|
|
workingDir: common/smoke-test/
|
|
|
|
displayName: List packages installed from the feed
|
|
|
|
|
|
|
|
# The MacOS image does not have TypeScript installed by default
|
|
|
|
- task: Npm@1
|
|
|
|
inputs:
|
|
|
|
command: custom
|
2020-01-18 01:20:15 +03:00
|
|
|
customCommand: "install -g typescript"
|
2020-01-17 01:40:08 +03:00
|
|
|
displayName: Install TypeScript
|
|
|
|
condition: and(succeeded(), contains(variables['OSVmImage'], 'macos'))
|
2019-09-19 21:27:23 +03:00
|
|
|
|
2019-11-07 21:31:42 +03:00
|
|
|
- script: tsc -p ./common/smoke-test/
|
2019-08-13 22:00:10 +03:00
|
|
|
displayName: "Compile TS"
|
2019-09-19 21:27:23 +03:00
|
|
|
|
2020-04-03 00:20:45 +03:00
|
|
|
- template: ../../eng/common/TestResources/deploy-test-resources.yml
|
|
|
|
parameters:
|
|
|
|
ServiceDirectory: "$(Build.SourcesDirectory)/common/smoke-test/"
|
2020-04-09 03:34:24 +03:00
|
|
|
Location: $(Location)
|
2020-04-03 00:20:45 +03:00
|
|
|
ArmTemplateParameters: $(ArmTemplateParameters)
|
2020-05-16 06:37:59 +03:00
|
|
|
SubscriptionConfiguration: $(SubscriptionConfiguration)
|
2020-03-15 01:44:39 +03:00
|
|
|
|
2019-11-07 21:31:42 +03:00
|
|
|
- script: node ./common/smoke-test/app.js
|
2019-09-19 21:27:23 +03:00
|
|
|
displayName: Run Smoke Test
|
2020-04-03 00:20:45 +03:00
|
|
|
|
|
|
|
- template: ../../eng/common/TestResources/remove-test-resources.yml
|
2020-04-30 01:56:06 +03:00
|
|
|
parameters:
|
|
|
|
ServiceDirectory: "$(Build.SourcesDirectory)/common/smoke-test/"
|
2020-05-16 06:37:59 +03:00
|
|
|
SubscriptionConfiguration: $(SubscriptionConfiguration)
|