steps:
- powershell: |
    # Fix Git SSL errors
    pip install certifi
    python -m certifi > cacert.txt
    Write-Host "##vso[task.setvariable variable=GIT_SSL_CAINFO]"$(Get-Content cacert.txt)"
    # Shorten paths to get under MAX_PATH or else integration tests will fail
    # https://bugs.python.org/issue18199
    subst T: "$env:TEMP"
    Write-Host "##vso[task.setvariable variable=TEMP]"T:\"
    Write-Host "##vso[task.setvariable variable=TMP]"T:\"
    Get-ChildItem Env
    D:\.venv\Scripts\pipenv run pytest -n 4 -ra --ignore=pipenv\patched --ignore=pipenv\vendor --junitxml=test-results.xml tests
  displayName: Run integration tests

- task: PublishTestResults@2
  displayName: Publish Test Results
  inputs:
    testResultsFiles: '**/test-results.xml'
    testRunTitle: 'Python $(python.version)'
  condition: succeededOrFailed()

steps:
- powershell: |
    # Fix Git SSL errors
    pip install certifi
    python -m certifi > cacert.txt
    Write-Host "##vso[task.setvariable variable=GIT_SSL_CAINFO]$(Get-Content cacert.txt)"
    # Shorten paths to get under MAX_PATH or else integration tests will fail
    # https://bugs.python.org/issue18199
    subst T: "$env:TEMP"
    Write-Host "##vso[task.setvariable variable=TEMP]T:\"
    Write-Host "##vso[task.setvariable variable=TMP]T:\"
    Get-ChildItem Env:
    D:\.venv\Scripts\pipenv run pytest -n 4 -ra --ignore=pipenv\patched --ignore=pipenv\vendor --junitxml=test-results.xml tests
  displayName: Run integration tests

- task: PublishTestResults@2
  displayName: Publish Test Results
  inputs:
    testResultsFiles: '**/test-results.xml'
    testRunTitle: 'Python $(python.version)'
  condition: succeededOrFailed()

Fix syntax issues in vsts
Fix syntax issues in vsts

Signed-off-by: Dan Ryan <2591e5f46f28d303f9dc027d475a5c60d8dea17a@danryan.co>

Fix syntax issues in vsts

Signed-off-by: Dan Ryan <2591e5f46f28d303f9dc027d475a5c60d8dea17a@danryan.co>
