4
4
strategy :
5
5
matrix :
6
6
LinuxPython27 :
7
- python.version : ' 2.7'
7
+ python.version : " 2.7"
8
8
imageName : ubuntu-16.04
9
- extraActions : ' false'
9
+ extraActions : " false"
10
10
LinuxPython35 :
11
- python.version : ' 3.5'
11
+ python.version : " 3.5"
12
12
imageName : ubuntu-16.04
13
- extraActions : ' false'
13
+ extraActions : " false"
14
14
LinuxPython36 :
15
- python.version : ' 3.6'
15
+ python.version : " 3.6"
16
16
imageName : ubuntu-16.04
17
- extraActions : ' false'
17
+ extraActions : " false"
18
18
LinuxPython37 :
19
- python.version : ' 3.7'
19
+ python.version : " 3.7"
20
20
imageName : ubuntu-16.04
21
- extraActions : ' true'
21
+ extraActions : " true"
22
22
MacPython27 :
23
- python.version : ' 2.7'
23
+ python.version : " 2.7"
24
24
imageName : macos-10.13
25
- extraActions : ' false'
25
+ extraActions : " false"
26
26
MacPython35 :
27
- python.version : ' 3.5'
27
+ python.version : " 3.5"
28
28
imageName : macos-10.13
29
- extraActions : ' false'
29
+ extraActions : " false"
30
30
MacPython36 :
31
- python.version : ' 3.6'
31
+ python.version : " 3.6"
32
32
imageName : macos-10.13
33
- extraActions : ' false'
33
+ extraActions : " false"
34
34
MacPython37 :
35
- python.version : ' 3.7'
35
+ python.version : " 3.7"
36
36
imageName : macos-10.13
37
- extraActions : ' false'
37
+ extraActions : " false"
38
38
WindowsPython27 :
39
- python.version : ' 2.7'
39
+ python.version : " 2.7"
40
40
imageName : vs2017-win2016
41
- extraActions : ' false'
41
+ extraActions : " false"
42
42
WindowsPython35 :
43
- python.version : ' 3.5'
43
+ python.version : " 3.5"
44
44
imageName : vs2017-win2016
45
- extraActions : ' false'
45
+ extraActions : " false"
46
46
WindowsPython36 :
47
- python.version : ' 3.6'
47
+ python.version : " 3.6"
48
48
imageName : vs2017-win2016
49
- extraActions : ' false'
49
+ extraActions : " false"
50
50
WindowsPython37 :
51
- python.version : ' 3.7'
51
+ python.version : " 3.7"
52
52
imageName : vs2017-win2016
53
- extraActions : ' false'
53
+ extraActions : " false"
54
54
maxParallel : 10
55
55
pool :
56
56
vmImage : $(imageName)
@@ -61,53 +61,53 @@ jobs:
61
61
versionSpec : $(python.version)
62
62
architecture : x64
63
63
-
64
- script : ' python -m pip install --upgrade pip && pip install -r test_requirements.txt'
65
- displayName : ' Install mbed-os test dependencies'
64
+ script : " python -m pip install --upgrade pip && pip install -r test_requirements.txt"
65
+ displayName : " Install mbed-os test dependencies"
66
66
-
67
67
script : |
68
68
pip install --user flake8==3.7.3
69
69
python -m flake8
70
70
condition : eq(variables['extraActions'], 'true')
71
- displayName : ' Enforce code style'
71
+ displayName : " Enforce code style"
72
72
-
73
73
script : ' pip install --user "urllib3<1.25"'
74
- displayName : ' Fix dependency issue for requests package'
74
+ displayName : " Fix dependency issue for requests package"
75
75
-
76
76
script : " python -m coverage run setup.py test"
77
77
displayName : " Test mbed-os-tools"
78
78
-
79
79
script : " python setup.py sdist && pip install dist/*"
80
80
displayName : " Install mbed-os-tools"
81
81
-
82
- script : ' python setup.py sdist && pip install dist/*'
83
- displayName : ' Install mbed-ls'
84
- workingDirectory : ' packages/mbed-ls'
82
+ script : " python setup.py sdist && pip install dist/*"
83
+ displayName : " Install mbed-ls"
84
+ workingDirectory : " packages/mbed-ls"
85
85
-
86
- script : ' python setup.py sdist && pip install dist/*'
87
- displayName : ' Install mbed-host-tests'
88
- workingDirectory : ' packages/mbed-host-tests'
86
+ script : " python setup.py sdist && pip install dist/*"
87
+ displayName : " Install mbed-host-tests"
88
+ workingDirectory : " packages/mbed-host-tests"
89
89
-
90
- script : ' python setup.py sdist && pip install dist/*'
91
- displayName : ' Install mbed-greentea'
92
- workingDirectory : ' packages/mbed-greentea'
90
+ script : " python setup.py sdist && pip install dist/*"
91
+ displayName : " Install mbed-greentea"
92
+ workingDirectory : " packages/mbed-greentea"
93
93
-
94
94
script : " python -m coverage run setup.py test"
95
95
displayName : " Test mbed-ls"
96
- workingDirectory : ' packages/mbed-ls'
96
+ workingDirectory : " packages/mbed-ls"
97
97
-
98
98
script : " python -m coverage run setup.py test"
99
99
displayName : " Test mbed-host-tests"
100
- workingDirectory : ' packages/mbed-host-tests'
100
+ workingDirectory : " packages/mbed-host-tests"
101
101
-
102
102
script : " python -m coverage run setup.py test"
103
103
displayName : " Test mbed-greentea"
104
- workingDirectory : ' packages/mbed-greentea'
104
+ workingDirectory : " packages/mbed-greentea"
105
105
-
106
106
script : |
107
107
python -m coverage combine .coverage packages/*/.coverage
108
108
python -m coveralls
109
109
condition : eq(variables['extraActions'], 'true')
110
- displayName : ' Send coverage results to coveralls'
110
+ displayName : " Send coverage results to coveralls"
111
111
-
112
112
job : Build
113
113
dependsOn : Test
@@ -120,5 +120,5 @@ jobs:
120
120
versionSpec : 3.x
121
121
architecture : x64
122
122
-
123
- script : ' python setup.py sdist'
124
- displayName : ' Build sdist'
123
+ script : " python setup.py sdist"
124
+ displayName : " Build sdist"
0 commit comments