File tree Expand file tree Collapse file tree 1 file changed +32
-7
lines changed Expand file tree Collapse file tree 1 file changed +32
-7
lines changed Original file line number Diff line number Diff line change 1
1
version : 2.1
2
2
commands :
3
- setup_and_run_tests :
3
+ run_tests :
4
+ description : " Run tests for << parameters.working_directory >>"
5
+ parameters :
6
+ working_directory :
7
+ type : string
4
8
steps :
5
- - checkout
6
9
- run :
7
- name : Install test requirements
10
+ name : " Install test requirements for \" << parameters.working_directory >>\" "
11
+ working_directory : << parameters.working_directory >>
8
12
command : pip install --user -r test_requirements.txt
9
13
- run :
10
- name : Run tests
14
+ name : " Run tests for \" << parameters.working_directory >>\" "
15
+ working_directory : << parameters.working_directory >>
11
16
command : python -m coverage run setup.py test
17
+ install_mbed_os_tools :
18
+ description : " Install mbed-os-tools for legacy package testing"
19
+ steps :
20
+ - run :
21
+ command : pip install .
22
+ setup_and_run_tests :
23
+ steps :
24
+ - checkout
25
+ - run_tests :
26
+ working_directory : .
27
+ - install_mbed_os_tools
28
+ - run_tests :
29
+ working_directory : legacy/mbed-ls
12
30
enforce_style :
13
31
steps :
14
32
- checkout
@@ -18,6 +36,14 @@ commands:
18
36
- run :
19
37
name : Enforce styling
20
38
command : python -m flake8
39
+ combine_and_send_coverage :
40
+ steps :
41
+ - run :
42
+ name : Combine all coverage results
43
+ command : python -m coverage combine .coverage legacy/*/.coverage
44
+ - run :
45
+ name : Send coverage results to coveralls
46
+ command : python -m coveralls
21
47
jobs :
22
48
test_python27 :
23
49
docker :
39
65
- image : python:3.7-stretch
40
66
steps :
41
67
- setup_and_run_tests
42
- - run :
43
- name : Send coverage results to coveralls
44
- command : python -m coveralls
68
+ - combine_and_send_coverage
69
+
45
70
style_enforcement :
46
71
docker :
47
72
- image : python:3.7-stretch
You can’t perform that action at this time.
0 commit comments