Skip to content

Commit 5175010

Browse files
APM-6127 separate out steps and use condition field
1 parent fd70284 commit 5175010

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

azure/templates/run-smoke-tests.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,24 @@ parameters:
66
steps:
77
- bash: |
88
make install-python
9-
workingDirectory: $(Pipeline.Workspace)/s/$(SERVICE_NAME)/$(SERVICE_ARTIFACT_NAME)
10-
displayName: Setup pytests
119
12-
- bash: |
1310
export PROXY_NAME="$(FULLY_QUALIFIED_SERVICE_NAME)"
1411
export APIGEE_ACCESS_TOKEN="$(secret.AccessToken)"
1512
export SOURCE_COMMIT_ID="$(Build.SourceVersion)"
13+
workingDirectory: $(Pipeline.Workspace)/s/$(SERVICE_NAME)/$(SERVICE_ARTIFACT_NAME)
14+
displayName: Setup pytests
1615
17-
if [ "${{ parameters.production }}" = "true" ]; then
18-
echo "Running smoketest-prod"
19-
make smoketest-prod
20-
else
21-
echo "Running smoketest"
22-
make smoketest
23-
fi
16+
- bash: |
17+
make smoketest-prod
18+
condition: eq(${{ parameters.production }}, true)
19+
workingDirectory: $(Pipeline.Workspace)/s/$(SERVICE_NAME)/$(SERVICE_ARTIFACT_NAME)
20+
displayName: Run smoketest-prod
21+
22+
- bash: |
23+
make smoketest
24+
condition: ne(${{ parameters.production }}, true)
2425
workingDirectory: $(Pipeline.Workspace)/s/$(SERVICE_NAME)/$(SERVICE_ARTIFACT_NAME)
25-
displayName: run smoketests
26+
displayName: Run smoketest
2627
2728
- task: PublishTestResults@2
2829
displayName: 'Publish smoketest results'

0 commit comments

Comments
 (0)