Files
pipenv/.azure-pipelines/jobs/run-tests.yml
Dan Ryan d361c86c7d Update azure pipeline scripts
Signed-off-by: Dan Ryan <dan@danryan.co>

Update azure builds

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

Update azure pipeline windows code

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

Update python executable search for windows

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

Fix variable reference

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

Set virtual env variable on windows

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

globally install pipenv on windows

Signed-off-by: Dan Ryan <dan@danryan.co>
2019-03-16 15:10:54 -04:00

31 lines
899 B
YAML

steps:
- task: UsePythonVersion@0
displayName: Use Python $(python.version)
inputs:
versionSpec: '$(python.version)'
architecture: '$(python.architecture)'
addToPath: true
- script: |
echo '##vso[task.setvariable variable=PIPENV_DEFAULT_PYTHON_VERSION]$(python.version)'
- template: ../steps/install-dependencies.yml
- template: ../steps/create-virtualenv-linux.yml
- script: |
# Fix Git SSL errors
export GIT_SSL_CAINFO="$(python -m certifi)"
export LANG="C.UTF-8"
export PIP_PROCESS_DEPENDENCY_LINKS="1"
git submodule sync && git submodule update --init --recursive
pipenv run pytest --junitxml=test-results.xml
displayName: Run integration tests
- task: PublishTestResults@2
displayName: Publish Test Results
inputs:
testResultsFiles: '**/test-results.xml'
testRunTitle: 'Python $(python.version)'
condition: succeededOrFailed()