generated from arcus-azure/arcus.github.template
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add az func tests to release build (#243)
- Loading branch information
1 parent
5d8a0ca
commit e823d22
Showing
3 changed files
with
58 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
steps: | ||
- task: DownloadPipelineArtifact@2 | ||
displayName: 'Download build artifacts' | ||
inputs: | ||
artifact: 'Build' | ||
path: '$(Build.SourcesDirectory)' | ||
- template: build-and-run-worker-container.yml | ||
parameters: | ||
projectName: 'Arcus.Messaging.Tests.Workers.ServiceBus.Queue' | ||
containerName: '$(Images.ServiceBus.Queue)' | ||
imageName: '$(Images.ServiceBus.Queue)' | ||
imageTag: $(Build.BuildId) | ||
healthPort: $(Arcus.Health.Port.Queue) | ||
connectionString: '$(Arcus.ServiceBus.Docker.ConnectionStringWithQueue)' | ||
- template: build-and-run-worker-container.yml | ||
parameters: | ||
projectName: 'Arcus.Messaging.Tests.Workers.ServiceBus.Topic' | ||
containerName: '$(Images.ServiceBus.Topic)' | ||
imageName: '$(Images.ServiceBus.Topic)' | ||
imageTag: $(Build.BuildId) | ||
healthPort: $(Arcus.Health.Port.Topic) | ||
connectionString: '$(Arcus.ServiceBus.Docker.ConnectionStringWithTopic)' | ||
- template: build-and-run-az-func-container.yml | ||
parameters: | ||
projectName: 'Arcus.Messaging.Tests.Runtimes.AzureFunction.ServiceBus.Queue' | ||
containerName: '$(Images.AzureFunction.ServiceBus.Queue)' | ||
imageName: '$(Images.AzureFunction.ServiceBus.Queue)' | ||
imageTag: '$(Build.BuildId)' | ||
port: '$(Arcus.AzureFunctions.Queue.Port)' | ||
- template: test/run-integration-tests.yml@templates | ||
parameters: | ||
dotnetSdkVersion: '$(DotNet.Sdk.Version)' | ||
projectName: '$(Project).Tests.Integration' | ||
category: 'Docker' | ||
- task: PowerShell@2 | ||
displayName: 'Get Docker container logs for Service Bus Queue worker project' | ||
inputs: | ||
targetType: 'inline' | ||
script: 'docker logs $(Images.ServiceBus.Queue)' | ||
condition: failed() | ||
- task: PowerShell@2 | ||
displayName: 'Get Docker container logs for Service Bus Topic worker project' | ||
inputs: | ||
targetType: 'inline' | ||
script: 'docker logs $(Images.ServiceBus.Topic)' | ||
condition: failed() | ||
- task: PowerShell@2 | ||
displayName: 'Get Docker container logs for Azure Functions Service Bus Queue project' | ||
inputs: | ||
targetType: 'inline' | ||
script: 'docker logs $(Images.AzureFunction.ServiceBus.Queue)' | ||
condition: failed() |