-
Notifications
You must be signed in to change notification settings - Fork 5
/
.azure-pipelines.yml
executable file
·58 lines (49 loc) · 1.46 KB
/
.azure-pipelines.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
trigger:
- 'master'
jobs:
- job: FlaskBB
variables:
TOXENV: 'py,coverage-ci'
pool:
vmImage: ubuntu-latest
strategy:
matrix:
Python35:
python.version: '3.5'
Python36:
python.version: '3.6'
Python37:
python.version: '3.7'
Python38:
python.version: '3.8'
maxParallel: 4
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(python.version)
architecture: x64
displayName: Use Python $(python.version)
- script: |
python -m pip install --upgrade pip
pip install pytest-azurepipelines
pip install -r requirements-dev.txt
displayName: Install dependencies
- script: flaskbb translations compile
displayName: Prepare FlaskBB
- script: tox -- --junitxml=test-results.xml
displayName: Run tox
env:
# Can't define in section 'variables' due it being a secret one
CODECOV_TOKEN: $(codecov.token)
- task: PublishTestResults@2
displayName: Publish test results
inputs:
testResultsFiles: test-results.xml
testRunTitle: $(Agent.JobName)
condition: succeededOrFailed()
- task: PublishCodeCoverageResults@1
displayName: Publish coverage results
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: coverage.xml
condition: succeededOrFailed()