set tox environment based on env
@@ -108,6 +108,14 @@ jobs:
vmImage: '$(OSVmImage)'
steps:
+ - pwsh: |
+ $toxenvvar = "whl,sdist"
+ if (('$(Build.Reason)' -eq 'Schedule') -and ('$(System.TeamProject)' -eq 'internal')) {
+ $toxenvvar = "whl,sdist"
+ }
+ echo "##vso[task.setvariable variable=toxenv]$toxenvvar"
+ displayName: "Set Tox Environment"
+
- template: ../steps/build-test.yml
parameters:
ServiceDirectory: ${{ parameters.ServiceDirectory }}
@@ -117,7 +125,7 @@ jobs:
CoverageArg: $(CoverageArg)
PythonVersion: $(PythonVersion)
BuildTargetingString: ${{ parameters.BuildTargetingString }}
- ToxTestEnv: 'whl,sdist'
+ ToxTestEnv: $(toxenv)
ToxEnvParallel: ${{ parameters.ToxEnvParallel }}
BeforeTestSteps:
- task: DownloadPipelineArtifact@0
