1
1
parameters :
2
- coverage : false
3
2
sudo_dependencies : sudo
4
3
dependencies : apt
5
4
patchcheck : true
@@ -23,47 +22,16 @@ steps:
23
22
- script : make -j4
24
23
displayName : ' Build CPython'
25
24
26
- - ${{ if eq(parameters.coverage, 'true') }} :
27
- - script : ./python -m venv venv && ./venv/bin/python -m pip install -U coverage
28
- displayName : ' Set up virtual environment'
25
+ - script : make pythoninfo
26
+ displayName : ' Display build info'
29
27
30
- - script : ./venv/bin/python -m test.pythoninfo
31
- displayName : ' Display build info'
32
-
33
- - script : |
34
- $COMMAND -m coverage run --pylib -m test \
35
- --fail-env-changed \
36
- -uall,-cpu \
37
- --junit-xml=$(build.binariesDirectory)/test-results.xml \
38
- -x test_multiprocessing_fork \
39
- -x test_multiprocessing_forkserver \
40
- -x test_multiprocessing_spawn \
41
- -x test_concurrent_futures
42
- displayName: 'Tests with coverage'
43
- env:
44
- ${{ if eq(parameters.xvfb, 'true') }}:
45
- COMMAND: xvfb-run ./venv/bin/python
46
- ${{ if ne(parameters.xvfb, 'true') }}:
47
- COMMAND: ./venv/bin/python
48
-
49
- - script : ./venv/bin/python -m coverage xml
50
- displayName : ' Generate coverage.xml'
51
-
52
- - script : source ./venv/bin/activate && bash <(curl -s https://codecov.io/bash) -y .github/codecov.yml
53
- displayName : ' Publish code coverage results'
54
-
55
-
56
- - ${{ if ne(parameters.coverage, 'true') }} :
57
- - script : make pythoninfo
58
- displayName : ' Display build info'
59
-
60
- - script : $COMMAND buildbottest TESTOPTS="-j4 -uall,-cpu --junit-xml=$(build.binariesDirectory)/test-results.xml"
61
- displayName : ' Tests'
62
- env :
63
- ${{ if eq(parameters.xvfb, 'true') }} :
64
- COMMAND : xvfb-run make
65
- ${{ if ne(parameters.xvfb, 'true') }} :
66
- COMMAND : make
28
+ - script : $COMMAND buildbottest TESTOPTS="-j4 -uall,-cpu --junit-xml=$(build.binariesDirectory)/test-results.xml"
29
+ displayName : ' Tests'
30
+ env :
31
+ ${{ if eq(parameters.xvfb, 'true') }} :
32
+ COMMAND : xvfb-run make
33
+ ${{ if ne(parameters.xvfb, 'true') }} :
34
+ COMMAND : make
67
35
68
36
- ${{ if eq(parameters.patchcheck, 'true') }} :
69
37
- script : |
0 commit comments