-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
33 lines (23 loc) · 845 Bytes
/
azure-pipelines.yml
File metadata and controls
33 lines (23 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
pool:
vmImage: 'ubuntu-16.04'
variables: # pipeline-level
PIPENV_VENV_IN_PROJECT: 'true'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.6'
architecture: 'x64'
- script: pip install --upgrade pip
displayName: 'installing pip upgrade'
- script: pip install pipenv
displayName: 'installing pipenv'
- script: pipenv install
displayName: 'installing project dependencies'
- script: pipenv install Django==2.0
displayName: 'installing django 2.0'
- script: pipenv install pytest-django
displayName: 'installing pytest-django'
- script: pipenv run pytest --junitxml=test-results/junit.xml djangodemo/tests
displayName: 'running pytest over test cases, storing test results'
- script: python djangodemo/setup.py sdist
displayName: 'packaging distribution'