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 11jobs :
22 -
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
420 strategy :
521 matrix :
6- LinuxPython27 :
22+ linux_python_2_7 :
723 python.version : " 2.7"
824 imageName : ubuntu-16.04
9- extraActions : " false"
10- LinuxPython35 :
25+ sendCoverage : " false"
26+ linux_python_3_5 :
1127 python.version : " 3.5"
1228 imageName : ubuntu-16.04
13- extraActions : " false"
14- LinuxPython36 :
29+ sendCoverage : " false"
30+ linux_python_3_6 :
1531 python.version : " 3.6"
1632 imageName : ubuntu-16.04
17- extraActions : " false"
18- LinuxPython37 :
33+ sendCoverage : " false"
34+ linux_python_3_7 :
1935 python.version : " 3.7"
2036 imageName : ubuntu-16.04
21- extraActions : " true"
22- MacPython27 :
37+ sendCoverage : " true"
38+ mac_python_2_7 :
2339 python.version : " 2.7"
2440 imageName : macos-10.13
25- extraActions : " false"
26- MacPython35 :
41+ sendCoverage : " false"
42+ mac_python_3_5 :
2743 python.version : " 3.5"
2844 imageName : macos-10.13
29- extraActions : " false"
30- MacPython36 :
45+ sendCoverage : " false"
46+ mac_python_3_6 :
3147 python.version : " 3.6"
3248 imageName : macos-10.13
33- extraActions : " false"
34- MacPython37 :
49+ sendCoverage : " false"
50+ mac_python_3_7 :
3551 python.version : " 3.7"
3652 imageName : macos-10.13
37- extraActions : " false"
38- WindowsPython27 :
53+ sendCoverage : " false"
54+ windows_python_2_7 :
3955 python.version : " 2.7"
4056 imageName : vs2017-win2016
41- extraActions : " false"
42- WindowsPython35 :
57+ sendCoverage : " false"
58+ windows_python_3_5 :
4359 python.version : " 3.5"
4460 imageName : vs2017-win2016
45- extraActions : " false"
46- WindowsPython36 :
61+ sendCoverage : " false"
62+ windows_python_3_6 :
4763 python.version : " 3.6"
4864 imageName : vs2017-win2016
49- extraActions : " false"
50- WindowsPython37 :
65+ sendCoverage : " false"
66+ windows_python_3_7 :
5167 python.version : " 3.7"
5268 imageName : vs2017-win2016
53- extraActions : " false"
69+ sendCoverage : " false"
5470 maxParallel : 10
5571 pool :
5672 vmImage : $(imageName)
6379 -
6480 script : " python -m pip install --upgrade pip && pip install -r test_requirements.txt"
6581 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"
7282 -
7383 script : ' pip install --user "urllib3<1.25"'
7484 displayName : " Fix dependency issue for requests package"
@@ -106,7 +116,7 @@ jobs:
106116 script : |
107117 python -m coverage combine .coverage packages/*/.coverage
108118 python -m coveralls
109- condition : eq(variables['extraActions '], 'true')
119+ condition : eq(variables['sendCoverage '], 'true')
110120 displayName : " Send coverage results to coveralls"
111121 -
112122 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