Skip to content

Commit df86cf7

Browse files
committed
Move coverage reporting to azure
1 parent 084a3f1 commit df86cf7

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

.circleci/config.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,6 @@ commands:
5454
- run:
5555
name: Enforce styling
5656
command: python -m flake8
57-
combine_and_send_coverage:
58-
steps:
59-
- run:
60-
name: Combine all coverage results
61-
command: python -m coverage combine .coverage packages/*/.coverage
62-
- run:
63-
name: Send coverage results to coveralls
64-
command: python -m coveralls
6557
jobs:
6658
test_python27:
6759
docker:
@@ -83,7 +75,6 @@ jobs:
8375
- image: python:3.7-stretch
8476
steps:
8577
- setup_and_run_tests
86-
- combine_and_send_coverage
8778

8879
style_enforcement:
8980
docker:

azure-pipelines.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,27 +78,33 @@ jobs:
7878
-
7979
script: 'pip install . && pip install -r test_requirements.txt'
8080
displayName: 'Install mbed-ls'
81-
workingDirectory: 'legacy/mbed-ls'
81+
workingDirectory: 'packages/mbed-ls'
8282
-
8383
script: 'pip install . && pip install -r test_requirements.txt'
8484
displayName: 'Install mbed-host-tests'
85-
workingDirectory: 'legacy/mbed-host-tests'
85+
workingDirectory: 'packages/mbed-host-tests'
8686
-
8787
script: 'pip install . && pip install -r test_requirements.txt'
8888
displayName: 'Install mbed-greentea'
89-
workingDirectory: 'legacy/mbed-greentea'
89+
workingDirectory: 'packages/mbed-greentea'
9090
-
9191
script: "python -m coverage run setup.py test"
9292
displayName: "Test mbed-ls"
93-
workingDirectory: 'legacy/mbed-ls'
93+
workingDirectory: 'packages/mbed-ls'
9494
-
9595
script: "python -m coverage run setup.py test"
9696
displayName: "Test mbed-host-tests"
97-
workingDirectory: 'legacy/mbed-host-tests'
97+
workingDirectory: 'packages/mbed-host-tests'
9898
-
9999
script: "python -m coverage run setup.py test"
100100
displayName: "Test mbed-greentea"
101-
workingDirectory: 'legacy/mbed-greentea'
101+
workingDirectory: 'packages/mbed-greentea'
102+
-
103+
script: |
104+
python -m coverage combine .coverage packages/*/.coverage
105+
python -m coveralls
106+
condition: eq(variables['extraActions'], 'true')
107+
displayName: 'Send coverage results to coveralls'
102108
-
103109
job: Build
104110
dependsOn: Test

0 commit comments

Comments
 (0)