Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions eng/pipelines/smoke-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
variables:
InstallAsyncRequirements: true

jobs:
- job:
strategy:
matrix:
Python_374:
PythonVersion: '3.7.4'
Python_27:
PythonVersion: '2.7'
InstallAsyncRequirements: false

steps:
- task: UsePythonVersion@0
displayName: "Use Python $(PythonVersion)"
inputs:
versionSpec: $(PythonVersion)

- script: pip install -r ./samples/smoketest/requirements.txt
displayName: "Install requirements.txt"

- script: pip install -r ./samples/smoketest/requirements_async.txt
displayName: "Install requirements_async.txt"
condition: eq(variables['InstallAsyncRequirements'], true)

- script: python ./samples/smoketest/program.py
displayName: "Run Smoke Test"
env:
AZURE_CLIENT_ID: $(aad-azure-sdk-test-client-id)
AZURE_CLIENT_SECRET: $(aad-azure-sdk-test-client-secret)
AZURE_TENANT_ID: $(aad-azure-sdk-test-tenant-id)
AZURE_PROJECT_URL: $(smoke-tests-key-vault-project-url)
EVENT_HUBS_CONNECTION_STRING: $(smoke-tests-event-hubs-connection-string)
COSMOS_ENDPOINT: $(smoke-tests-cosmos-endpoint)
COSMOS_KEY: $(smoke-tests-cosmos-key)
STORAGE_CONNECTION_STRING: $(smoke-tests-storage-connection-string)