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 11jobs :
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"
217 -
318 job : Test
419 strategy :
520 matrix :
621 LinuxPython27 :
722 python.version : " 2.7"
823 imageName : ubuntu-16.04
9- extraActions : " false"
24+ sendCoverage : " false"
1025 LinuxPython35 :
1126 python.version : " 3.5"
1227 imageName : ubuntu-16.04
13- extraActions : " false"
28+ sendCoverage : " false"
1429 LinuxPython36 :
1530 python.version : " 3.6"
1631 imageName : ubuntu-16.04
17- extraActions : " false"
32+ sendCoverage : " false"
1833 LinuxPython37 :
1934 python.version : " 3.7"
2035 imageName : ubuntu-16.04
21- extraActions : " true"
36+ sendCoverage : " true"
2237 MacPython27 :
2338 python.version : " 2.7"
2439 imageName : macos-10.13
25- extraActions : " false"
40+ sendCoverage : " false"
2641 MacPython35 :
2742 python.version : " 3.5"
2843 imageName : macos-10.13
29- extraActions : " false"
44+ sendCoverage : " false"
3045 MacPython36 :
3146 python.version : " 3.6"
3247 imageName : macos-10.13
33- extraActions : " false"
48+ sendCoverage : " false"
3449 MacPython37 :
3550 python.version : " 3.7"
3651 imageName : macos-10.13
37- extraActions : " false"
52+ sendCoverage : " false"
3853 WindowsPython27 :
3954 python.version : " 2.7"
4055 imageName : vs2017-win2016
41- extraActions : " false"
56+ sendCoverage : " false"
4257 WindowsPython35 :
4358 python.version : " 3.5"
4459 imageName : vs2017-win2016
45- extraActions : " false"
60+ sendCoverage : " false"
4661 WindowsPython36 :
4762 python.version : " 3.6"
4863 imageName : vs2017-win2016
49- extraActions : " false"
64+ sendCoverage : " false"
5065 WindowsPython37 :
5166 python.version : " 3.7"
5267 imageName : vs2017-win2016
53- extraActions : " false"
68+ sendCoverage : " false"
5469 maxParallel : 10
5570 pool :
5671 vmImage : $(imageName)
6378 -
6479 script : " python -m pip install --upgrade pip && pip install -r test_requirements.txt"
6580 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"
7281 -
7382 script : ' pip install --user "urllib3<1.25"'
7483 displayName : " Fix dependency issue for requests package"
@@ -106,7 +115,7 @@ jobs:
106115 script : |
107116 python -m coverage combine .coverage packages/*/.coverage
108117 python -m coveralls
109- condition : eq(variables['extraActions '], 'true')
118+ condition : eq(variables['sendCoverage '], 'true')
110119 displayName : " Send coverage results to coveralls"
111120 -
112121 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