File tree Expand file tree Collapse file tree 1 file changed +42
-32
lines changed Expand file tree Collapse file tree 1 file changed +42
-32
lines changed Original file line number Diff line number Diff line change 1
1
jobs :
2
2
-
3
- job : Test
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 : pip install --user flake8==3.7.3
14
+ displayName : " Install flake8"
15
+ -
16
+ script : python -m flake8
17
+ displayName : " Run flake8"
18
+ -
19
+ job : test
4
20
strategy :
5
21
matrix :
6
- LinuxPython27 :
22
+ linux_python_2_7 :
7
23
python.version : " 2.7"
8
24
imageName : ubuntu-16.04
9
- extraActions : " false"
10
- LinuxPython35 :
25
+ sendCoverage : " false"
26
+ linux_python_3_5 :
11
27
python.version : " 3.5"
12
28
imageName : ubuntu-16.04
13
- extraActions : " false"
14
- LinuxPython36 :
29
+ sendCoverage : " false"
30
+ linux_python_3_6 :
15
31
python.version : " 3.6"
16
32
imageName : ubuntu-16.04
17
- extraActions : " false"
18
- LinuxPython37 :
33
+ sendCoverage : " false"
34
+ linux_python_3_7 :
19
35
python.version : " 3.7"
20
36
imageName : ubuntu-16.04
21
- extraActions : " true"
22
- MacPython27 :
37
+ sendCoverage : " true"
38
+ mac_python_2_7 :
23
39
python.version : " 2.7"
24
40
imageName : macos-10.13
25
- extraActions : " false"
26
- MacPython35 :
41
+ sendCoverage : " false"
42
+ mac_python_3_5 :
27
43
python.version : " 3.5"
28
44
imageName : macos-10.13
29
- extraActions : " false"
30
- MacPython36 :
45
+ sendCoverage : " false"
46
+ mac_python_3_6 :
31
47
python.version : " 3.6"
32
48
imageName : macos-10.13
33
- extraActions : " false"
34
- MacPython37 :
49
+ sendCoverage : " false"
50
+ mac_python_3_7 :
35
51
python.version : " 3.7"
36
52
imageName : macos-10.13
37
- extraActions : " false"
38
- WindowsPython27 :
53
+ sendCoverage : " false"
54
+ windows_python_2_7 :
39
55
python.version : " 2.7"
40
56
imageName : vs2017-win2016
41
- extraActions : " false"
42
- WindowsPython35 :
57
+ sendCoverage : " false"
58
+ windows_python_3_5 :
43
59
python.version : " 3.5"
44
60
imageName : vs2017-win2016
45
- extraActions : " false"
46
- WindowsPython36 :
61
+ sendCoverage : " false"
62
+ windows_python_3_6 :
47
63
python.version : " 3.6"
48
64
imageName : vs2017-win2016
49
- extraActions : " false"
50
- WindowsPython37 :
65
+ sendCoverage : " false"
66
+ windows_python_3_7 :
51
67
python.version : " 3.7"
52
68
imageName : vs2017-win2016
53
- extraActions : " false"
69
+ sendCoverage : " false"
54
70
maxParallel : 10
55
71
pool :
56
72
vmImage : $(imageName)
63
79
-
64
80
script : " python -m pip install --upgrade pip && pip install -r test_requirements.txt"
65
81
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
82
-
73
83
script : ' pip install --user "urllib3<1.25"'
74
84
displayName : " Fix dependency issue for requests package"
@@ -106,7 +116,7 @@ jobs:
106
116
script : |
107
117
python -m coverage combine .coverage packages/*/.coverage
108
118
python -m coveralls
109
- condition : eq(variables['extraActions '], 'true')
119
+ condition : eq(variables['sendCoverage '], 'true')
110
120
displayName : " Send coverage results to coveralls"
111
121
-
112
122
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