Skip to content
Open
Show file tree
Hide file tree
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
21 changes: 21 additions & 0 deletions eng/ci/public-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,24 @@ extends:
parameters:
testAssembly: 'tests/**/DurableTask.Emulator.Tests.dll'
artifactName: 'EmulatorTests'

- stage: DTFxSBValidate
dependsOn: []
jobs:
- job: Validate
strategy:
parallel: 13
steps:
# Build the code and the tests
- template: /eng/templates/build-steps.yml@self
parameters:
# The tests only build in the 'Debug' configuration.
# In the release configuration, the packages don't expose their internals
# to the test projects.
buildConfiguration: 'Debug'
buildTests: true
# Run tests
- template: /eng/templates/test.yml@self
parameters:
testAssembly: 'tests/**/DurableTask.ServiceBus.Tests.dll'
artifactName: 'ServiceBusTests'
28 changes: 27 additions & 1 deletion eng/templates/build-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ steps:
projects: |
src/DurableTask.AzureStorage/DurableTask.AzureStorage.sln
src/DurableTask.Emulator/DurableTask.Emulator.csproj
src/DurableTask.ServiceBus/DurableTask.ServiceBus.csproj
src/DurableTask.ApplicationInsights/DurableTask.ApplicationInsights.csproj

# Build the filtered solution in release mode, specifying the continuous integration flag.
Expand All @@ -59,6 +60,15 @@ steps:
configuration: ${{ parameters.buildConfiguration }}
msbuildArgs: /p:FileVersionRevision=$(Build.BuildId) /p:ContinuousIntegrationBuild=true

- task: VSBuild@1
displayName: 'Build (ServiceBus)'
inputs:
solution: 'src/DurableTask.ServiceBus/DurableTask.ServiceBus.csproj'
vsVersion: '17.0'
logFileVerbosity: minimal
configuration: ${{ parameters.buildConfiguration }}
msbuildArgs: /p:FileVersionRevision=$(Build.BuildId) /p:ContinuousIntegrationBuild=true

- task: VSBuild@1
displayName: 'Build (Emulator)'
inputs:
Expand All @@ -77,6 +87,7 @@ steps:
projects: |
.\Test\DurableTask.Core.Tests\DurableTask.Core.Tests.csproj
.\Test\DurableTask.AzureStorage.Tests\DurableTask.AzureStorage.Tests.csproj
.\Test\DurableTask.ServiceBus.Tests\DurableTask.ServiceBus.Tests.csproj
.\Test\DurableTask.Emulator.Tests\DurableTask.Emulator.Tests.csproj

- task: VSBuild@1
Expand Down Expand Up @@ -122,4 +133,19 @@ steps:
displayName: 'Publish Emulator Tests Artifact'
inputs:
path: $(Build.SourcesDirectory)/Test/DurableTask.Emulator.Tests/bin/${{ parameters.buildConfiguration }}
artifact: EmulatorTests
artifact: EmulatorTests

- task: VSBuild@1
displayName: 'Build (ServiceBus Tests)'
inputs:
solution: '.\Test\DurableTask.ServiceBus.Tests\DurableTask.ServiceBus.Tests.csproj'
vsVersion: '17.0'
logFileVerbosity: minimal
configuration: ${{ parameters.buildConfiguration }}
msbuildArgs: /p:FileVersionRevision=$(Build.BuildId) /p:ContinuousIntegrationBuild=true

- task: 1ES.PublishPipelineArtifact@1
displayName: 'Publish ServiceBus Tests Artifact'
inputs:
path: $(Build.SourcesDirectory)/Test/DurableTask.ServiceBus.Tests/bin/${{ parameters.buildConfiguration }}
artifact: ServiceBusTests
2 changes: 1 addition & 1 deletion test/DurableTask.ServiceBus.Tests/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<configuration>
<appSettings>
<add key="StorageConnectionString" value="UseDevelopmentStorage=true" />
<add key="ServiceBusConnectionString" value="" />
<add key="ServiceBusConnectionString" value="Endpoint=sb://127.0.0.1;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true;" />
<add key="TaskHubName" value="test" />
</appSettings>
<system.serviceModel>
Expand Down
2 changes: 1 addition & 1 deletion test/DurableTask.ServiceBus.Tests/testhost.dll.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<configuration>
<appSettings>
<add key="StorageConnectionString" value="UseDevelopmentStorage=true" />
<add key="ServiceBusConnectionString" value="" />
<add key="ServiceBusConnectionString" value="Endpoint=sb://127.0.0.1;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SAS_KEY_VALUE;UseDevelopmentEmulator=true;" />
<add key="TaskHubName" value="test" />
</appSettings>
<runtime>
Expand Down
Loading