Skip to content

Commit

Permalink
Supply connection string just to linux/mac
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Oct 5, 2020
1 parent 31f31e0 commit 58c0388
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions azure-pipelines/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
- bash: ./tools/Emulators.sh &
displayName: Start storage emulators
- template: dotnet.yml
parameters:
test_secrets:
CosmosDBConnectionString: $(CosmosDBConnectionString)

- job: macOS
condition: false
Expand All @@ -45,6 +48,9 @@ jobs:
- bash: ./tools/Emulators.sh &
displayName: Start storage emulators
- template: dotnet.yml
parameters:
test_secrets:
CosmosDBConnectionString: $(CosmosDBConnectionString)

- job: WrapUp
dependsOn:
Expand Down
9 changes: 9 additions & 0 deletions azure-pipelines/dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
parameters:
- name: test_secrets
type: object
default:

steps:

- script: dotnet build --no-restore -c $(BuildConfiguration) -p:Platform="$(BuildPlatform)" /v:m /bl:"$(Build.ArtifactStagingDirectory)/build_logs/build.binlog"
Expand All @@ -22,13 +27,17 @@ steps:
arguments: --no-build -c $(BuildConfiguration) -f netcoreapp2.1 --filter "TestCategory!=FailsInCloudTest" -v n /p:CollectCoverage=true --settings "$(Build.Repository.LocalPath)/azure-pipelines/$(Agent.OS).runsettings"
workingDirectory: test/IronPigeon.Tests
testRunTitle: netcoreapp2.1-$(Agent.JobName)
env:
- ${{ parameters.test_secrets }}

- task: DotNetCoreCLI@2
displayName: dotnet test -f netcoreapp3.1
inputs:
command: test
arguments: --no-build -c $(BuildConfiguration) -f netcoreapp3.1 --filter "TestCategory!=FailsInCloudTest" -v n /p:CollectCoverage=true --settings "$(Build.Repository.LocalPath)/azure-pipelines/$(Agent.OS).runsettings"
testRunTitle: netcoreapp3.1-$(Agent.JobName)
env:
- ${{ parameters.test_secrets }}

- powershell: azure-pipelines/variables/_pipelines.ps1
failOnStderr: true
Expand Down

0 comments on commit 58c0388

Please sign in to comment.