File tree Expand file tree Collapse file tree 1 file changed +28
-19
lines changed Expand file tree Collapse file tree 1 file changed +28
-19
lines changed Original file line number Diff line number Diff line change 1
1
jobs :
2
+ -
3
+ job : Code style check
4
+ pool :
5
+ vmImage : ubuntu-16.04
6
+ steps :
7
+ -
8
+ task : UsePythonVersion@0
9
+ inputs :
10
+ versionSpec : " 3.7"
11
+ architecture : x64
12
+ -
13
+ script : |
14
+ pip install --user flake8==3.7.3
15
+ python -m flake8
16
+ displayName : " Code style check"
2
17
-
3
18
job : Test
4
19
strategy :
5
20
matrix :
6
21
LinuxPython27 :
7
22
python.version : " 2.7"
8
23
imageName : ubuntu-16.04
9
- extraActions : " false"
24
+ sendCoverage : " false"
10
25
LinuxPython35 :
11
26
python.version : " 3.5"
12
27
imageName : ubuntu-16.04
13
- extraActions : " false"
28
+ sendCoverage : " false"
14
29
LinuxPython36 :
15
30
python.version : " 3.6"
16
31
imageName : ubuntu-16.04
17
- extraActions : " false"
32
+ sendCoverage : " false"
18
33
LinuxPython37 :
19
34
python.version : " 3.7"
20
35
imageName : ubuntu-16.04
21
- extraActions : " true"
36
+ sendCoverage : " true"
22
37
MacPython27 :
23
38
python.version : " 2.7"
24
39
imageName : macos-10.13
25
- extraActions : " false"
40
+ sendCoverage : " false"
26
41
MacPython35 :
27
42
python.version : " 3.5"
28
43
imageName : macos-10.13
29
- extraActions : " false"
44
+ sendCoverage : " false"
30
45
MacPython36 :
31
46
python.version : " 3.6"
32
47
imageName : macos-10.13
33
- extraActions : " false"
48
+ sendCoverage : " false"
34
49
MacPython37 :
35
50
python.version : " 3.7"
36
51
imageName : macos-10.13
37
- extraActions : " false"
52
+ sendCoverage : " false"
38
53
WindowsPython27 :
39
54
python.version : " 2.7"
40
55
imageName : vs2017-win2016
41
- extraActions : " false"
56
+ sendCoverage : " false"
42
57
WindowsPython35 :
43
58
python.version : " 3.5"
44
59
imageName : vs2017-win2016
45
- extraActions : " false"
60
+ sendCoverage : " false"
46
61
WindowsPython36 :
47
62
python.version : " 3.6"
48
63
imageName : vs2017-win2016
49
- extraActions : " false"
64
+ sendCoverage : " false"
50
65
WindowsPython37 :
51
66
python.version : " 3.7"
52
67
imageName : vs2017-win2016
53
- extraActions : " false"
68
+ sendCoverage : " false"
54
69
maxParallel : 10
55
70
pool :
56
71
vmImage : $(imageName)
63
78
-
64
79
script : " python -m pip install --upgrade pip && pip install -r test_requirements.txt"
65
80
displayName : " Install mbed-os test dependencies"
66
- -
67
- script : |
68
- pip install --user flake8==3.7.3
69
- python -m flake8
70
- condition : eq(variables['extraActions'], 'true')
71
- displayName : " Enforce code style"
72
81
-
73
82
script : ' pip install --user "urllib3<1.25"'
74
83
displayName : " Fix dependency issue for requests package"
@@ -106,7 +115,7 @@ jobs:
106
115
script : |
107
116
python -m coverage combine .coverage packages/*/.coverage
108
117
python -m coveralls
109
- condition : eq(variables['extraActions '], 'true')
118
+ condition : eq(variables['sendCoverage '], 'true')
110
119
displayName : " Send coverage results to coveralls"
111
120
-
112
121
script : " pip uninstall -y mbed-os-tools mbed-ls mbed-greentea mbed-host-tests"
You can’t perform that action at this time.
0 commit comments