Skip to content

Commit 2277d48

Browse files
authored
Merge pull request #47 from bridadan/mbed_ls_legacy_package
Add Mbed LS legacy package
2 parents e1414ad + 3db32b8 commit 2277d48

File tree

115 files changed

+3753
-18
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+3753
-18
lines changed

.circleci/config.yml

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,33 @@
11
version: 2.1
22
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
48
steps:
5-
- checkout
69
- run:
7-
name: Install test requirements
10+
name: "Install test requirements for \"<< parameters.working_directory >>\""
11+
working_directory: << parameters.working_directory >>
812
command: pip install --user -r test_requirements.txt
913
- run:
10-
name: Run tests
14+
name: "Run tests for \"<< parameters.working_directory >>\""
15+
working_directory: << parameters.working_directory >>
1116
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+
name: "Install mbed-os-tools for legacy package testing"
22+
command: pip install --user .
23+
setup_and_run_tests:
24+
steps:
25+
- checkout
26+
- run_tests:
27+
working_directory: .
28+
- install_mbed_os_tools
29+
- run_tests:
30+
working_directory: legacy/mbed-ls
1231
enforce_style:
1332
steps:
1433
- checkout
@@ -18,6 +37,14 @@ commands:
1837
- run:
1938
name: Enforce styling
2039
command: python -m flake8
40+
combine_and_send_coverage:
41+
steps:
42+
- run:
43+
name: Combine all coverage results
44+
command: python -m coverage combine .coverage legacy/*/.coverage
45+
- run:
46+
name: Send coverage results to coveralls
47+
command: python -m coveralls
2148
jobs:
2249
test_python27:
2350
docker:
@@ -39,9 +66,8 @@ jobs:
3966
- image: python:3.7-stretch
4067
steps:
4168
- setup_and_run_tests
42-
- run:
43-
name: Send coverage results to coveralls
44-
command: python -m coveralls
69+
- combine_and_send_coverage
70+
4571
style_enforcement:
4672
docker:
4773
- image: python:3.7-stretch

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[run]
22
source =
3-
mbed_os_tools
3+
src/mbed_os_tools

.flake8

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
max-line-length = 88
55
exclude =
66
test,
7-
mbed_os_tools/test
7+
src/mbed_os_tools/test,
8+
legacy

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ This repository contains the python modules needed to work with Mbed OS. **The A
44

55
To contribute changes to these packages, please commit them to this repository. The mapping of these packages to the `mbed-os-tools` modules is as follows:
66

7-
- mbed-ls - `mbed_os_tools/detect` for the implementation, `test/detect` for the tests
8-
- mbed-greentea - `mbed_os_tools/test` for the implementation, `test/test` for the tests
9-
- mbed-host-tests - `mbed_os_tools/test` for the implementation, `test/test` for the tests
7+
- mbed-ls - `src/mbed_os_tools/detect` for the implementation, `test/detect` for the tests
8+
- mbed-greentea - `src/mbed_os_tools/test` for the implementation, `test/test` for the tests
9+
- mbed-host-tests - `src/mbed_os_tools/test` for the implementation, `test/test` for the tests
1010

1111
## License and contributions
1212

legacy/mbed-ls/.coveragerc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[run]
2+
source =
3+
mbed_lstools

legacy/mbed-ls/MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include README.md LICENSE CONTRIBUTING.md
2+
include .coveragerc

0 commit comments

Comments
 (0)