forked from gdraheim/docker-systemctl-replacement
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
61 lines (58 loc) · 1.91 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
59
60
61
resources:
repositories:
- repository: retype
type: github
endpoint: gdraheim
name: ambv/retype
ref: 04978c6f7dcedb76ff334da8d5be734d3a4ce4b4
# ref: 17.12.0
trigger:
- develop
pool:
vmImage: 'ubuntu-latest'
steps:
- checkout: self
- checkout: retype
- script: |
sudo apt-get update --fix-missing
displayName: 'refresh install'
- script: |
sudo apt-get install --fix-broken --ignore-missing python3-typed-ast mypy
displayName: 'install python3 mypy'
- script: |
sudo apt-get install --fix-broken --ignore-missing python3-coverage
displayName: 'install python3 coverage'
- script: |
sudo apt-get install --fix-broken --ignore-missing python3-pip
displayName: 'install python3 pip'
- script: |
pip3 install unittest-xml-reporting
displayName: 'install unittest-xml-reporting'
- script: |
pwd
sed -i -e "s:test_runner.output.write(xml_content):test_runner.output.write(xml_content.decode('utf-8')):" $HOME/.local/lib/python3.6/site-packages/xmlrunner/result.py
displayName: 'patch unittest-xml-reporting'
- script: |
find . -type d
displayName: 'make type (mypy strict type checking)'
- script: |
make type -C docker-systemctl-replacement
displayName: 'make type (mypy strict type checking)'
- script: |
make coverage -C docker-systemctl-replacement
true
displayName: 'make coverage (testsuite.py with coverage)'
- script: |
find . -name '*.xml'
displayName: 'find xml'
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/TEST-*.xml'
testRunTitle: 'Basic Code Coverage (python3) without docker-based tests'
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
pathToSource: '$(System.DefaultWorkingDirectory)/docker-systemctl-replacement/'
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'