-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Sourabh Mehta <[email protected]>
- Loading branch information
1 parent
0f66cb4
commit fb436ec
Showing
5 changed files
with
181 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -333,6 +333,12 @@ jobs: | |
with: | ||
submodules: true | ||
|
||
- name: Testspace client install & config | ||
if: ${{ !github.event.repository.private }} | ||
uses: testspace-com/setup-testspace@v1 | ||
with: | ||
domain: ${{github.repository_owner}} | ||
|
||
- name: Cache ARM GCC | ||
uses: actions/cache@v3 | ||
with: | ||
|
@@ -440,11 +446,21 @@ jobs: | |
retention-days: ${{ needs.setup.outputs.retention_days }} | ||
if-no-files-found: error | ||
|
||
- name: Testspace push unit test content | ||
if: ${{ always() && (matrix.arch != 'arm64') && (!github.event.repository.private) }} | ||
run: | | ||
testspace "[${{ github.workflow }} / Test Report/ ${{ matrix.target }}-${{ matrix.arch }}]./build/test_reports/cbuildunittests-*.xml" | ||
- name: Testspace push integration test content | ||
if: ${{ (!github.event.repository.private) && always() && ((matrix.arch == 'amd64') || (startsWith(matrix.runs_on, 'ubuntu'))) }} | ||
run: | | ||
testspace "[${{ github.workflow }} / Test Report/ ${{ matrix.target }}-${{ matrix.arch }}]./build/test_reports/cbuildintegtests-*.xml" | ||
coverage: | ||
if: | | ||
(github.event_name == 'pull_request') || | ||
((github.event_name == 'pull_request') || | ||
(github.event_name == 'push') || | ||
(github.event_name == 'release' && startsWith(github.ref, 'refs/tags/tools/buildmgr/')) || | ||
(github.event_name == 'release' && startsWith(github.ref, 'refs/tags/tools/buildmgr/'))) && | ||
((github.event.schedule != '') && (!github.event.repository.private)) | ||
env: | ||
installer_name: "gcc-arm-11.2-2022.02-x86_64-arm-none-eabi.tar.xz" | ||
|
@@ -472,6 +488,11 @@ jobs: | |
with: | ||
submodules: recursive | ||
|
||
- name: Testspace client install & config | ||
uses: testspace-com/setup-testspace@v1 | ||
with: | ||
domain: ${{github.repository_owner}} | ||
|
||
- name: Create build folder | ||
run: mkdir build | ||
|
||
|
@@ -542,8 +563,23 @@ jobs: | |
genhtml coverage_buildmgr.info --output-directory coverage_buildmgr --branch-coverage | ||
working-directory: ./build/tools/buildmgr | ||
|
||
# testspace changes start | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install lcov_cobertura | ||
- name: Convert to xml | ||
run: | | ||
lcov_cobertura ./build/tools/buildmgr/coverage_buildmgr.info | ||
- name: Testspace push coverage | ||
run: testspace "[${{ github.workflow }} / Code Coverage]./coverage.xml" | ||
# testspace changes end | ||
|
||
- name: Upload Report to Codecov | ||
if: ${{ !github.event.repository.private }} | ||
uses: Wandalen/[email protected] | ||
with: | ||
action: codecov/codecov-action@v3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,6 +104,12 @@ jobs: | |
with: | ||
submodules: recursive | ||
|
||
- name: Testspace client install & config | ||
if: ${{ !github.event.repository.private }} | ||
uses: testspace-com/setup-testspace@v1 | ||
with: | ||
domain: ${{github.repository_owner}} | ||
|
||
# https://github.com/Open-CMSIS-Pack/devtools-build-action | ||
- name: Build PackChkUnitTests | ||
uses: Open-CMSIS-Pack/devtools-build-action@arm64 | ||
|
@@ -150,11 +156,17 @@ jobs: | |
if-no-files-found: error | ||
retention-days: ${{ needs.setup.outputs.retention_days }} | ||
|
||
- name: Testspace push test content | ||
if: ${{ (!github.event.repository.private) && always() && (matrix.arch != 'arm64') }} | ||
run: | | ||
testspace "[${{ github.workflow }} / Test Report/ ${{ matrix.target }}-${{ matrix.arch }}]./build/test_reports/packchkunittests-*.xml" | ||
testspace "[${{ github.workflow }} / Test Report/ ${{ matrix.target }}-${{ matrix.arch }}]./build/test_reports/packchkintegtests-*.xml" | ||
coverage: | ||
if: | | ||
(github.event_name == 'pull_request') || | ||
((github.event_name == 'pull_request') || | ||
(github.event_name == 'push') || | ||
(github.event_name == 'release' && startsWith(github.ref, 'refs/tags/tools/packchk/')) || | ||
(github.event_name == 'release' && startsWith(github.ref, 'refs/tags/tools/packchk/'))) && | ||
((github.event.schedule != '') && (!github.event.repository.private)) | ||
env: | ||
lcov_base: https://github.com/linux-test-project/lcov/releases/download/v1.15/ | ||
|
@@ -173,6 +185,11 @@ jobs: | |
with: | ||
submodules: recursive | ||
|
||
- name: Testspace client install & config | ||
uses: testspace-com/setup-testspace@v1 | ||
with: | ||
domain: ${{github.repository_owner}} | ||
|
||
# https://github.com/Open-CMSIS-Pack/devtools-build-action | ||
- name: Build PackChkUnitTests | ||
uses: Open-CMSIS-Pack/devtools-build-action@arm64 | ||
|
@@ -236,8 +253,24 @@ jobs: | |
genhtml coverage_packchk.info --output-directory coverage_packchk --branch-coverage | ||
working-directory: ./build/tools/packchk | ||
|
||
# testspace changes start | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install lcov_cobertura | ||
- name: Convert to xml | ||
run: | | ||
lcov_cobertura ./build/tools/packchk/coverage_packchk.info | ||
- name: Testspace push coverage | ||
run: | | ||
testspace "[${{ github.workflow }} / Code Coverage]./coverage.xml" | ||
# testspace changes start | ||
|
||
- name: Upload Report to Codecov | ||
if: ${{ !github.event.repository.private }} | ||
uses: Wandalen/[email protected] | ||
with: | ||
action: codecov/codecov-action@v3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,6 +158,12 @@ jobs: | |
with: | ||
submodules: true | ||
|
||
- name: Testspace client install & config | ||
if: ${{ !github.event.repository.private }} | ||
uses: testspace-com/setup-testspace@v1 | ||
with: | ||
domain: ${{github.repository_owner}} | ||
|
||
# https://github.com/Open-CMSIS-Pack/devtools-build-action | ||
- name: Build PackGenUnitTests | ||
uses: Open-CMSIS-Pack/devtools-build-action@arm64 | ||
|
@@ -181,11 +187,16 @@ jobs: | |
retention-days: ${{ needs.setup.outputs.retention_days }} | ||
if-no-files-found: error | ||
|
||
- name: Testspace push test content | ||
if: ${{ (!github.event.repository.private) && always() && (matrix.arch != 'arm64') }} | ||
run: | | ||
testspace "[${{ github.workflow }} / Test Report/ ${{ matrix.target }}-${{ matrix.arch }}]./build/test_reports/packgenunittests-*.xml" | ||
coverage: | ||
if: | | ||
(github.event_name == 'pull_request') || | ||
((github.event_name == 'pull_request') || | ||
(github.event_name == 'push') || | ||
(github.event_name == 'release' && startsWith(github.ref, 'refs/tags/tools/packgen/')) || | ||
(github.event_name == 'release' && startsWith(github.ref, 'refs/tags/tools/packgen/'))) && | ||
((github.event.schedule != '') && (!github.event.repository.private)) | ||
env: | ||
lcov_base: https://github.com/linux-test-project/lcov/releases/download/v1.15/ | ||
|
@@ -204,6 +215,11 @@ jobs: | |
with: | ||
submodules: true | ||
|
||
- name: Testspace client install & config | ||
uses: testspace-com/setup-testspace@v1 | ||
with: | ||
domain: ${{github.repository_owner}} | ||
|
||
# https://github.com/Open-CMSIS-Pack/devtools-build-action | ||
- name: Build PackGenUnitTests | ||
uses: Open-CMSIS-Pack/devtools-build-action@arm64 | ||
|
@@ -248,8 +264,24 @@ jobs: | |
genhtml coverage_packgen.info --output-directory coverage_packgen --branch-coverage | ||
working-directory: ./build/tools/packgen/ | ||
|
||
# testspace changes start | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install lcov_cobertura | ||
- name: Convert to xml | ||
run: | | ||
lcov_cobertura ./build/tools/packgen/coverage_packgen.info | ||
- name: Testspace push coverage | ||
run: | | ||
testspace "[${{ github.workflow }} / Code Coverage]./coverage.xml" | ||
# testspace changes start | ||
|
||
- name: Upload Report to Codecov | ||
if: ${{ !github.event.repository.private }} | ||
uses: Wandalen/[email protected] | ||
with: | ||
action: codecov/codecov-action@v3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -298,6 +298,12 @@ jobs: | |
with: | ||
submodules: true | ||
|
||
- name: Testspace client install & config | ||
if: ${{ !github.event.repository.private }} | ||
uses: testspace-com/setup-testspace@v1 | ||
with: | ||
domain: ${{github.repository_owner}} | ||
|
||
# https://github.com/Open-CMSIS-Pack/devtools-build-action | ||
- name: Build ProjMgrUnitTests | ||
uses: Open-CMSIS-Pack/devtools-build-action@arm64 | ||
|
@@ -330,11 +336,16 @@ jobs: | |
retention-days: ${{ needs.setup.outputs.retention_days }} | ||
if-no-files-found: error | ||
|
||
- name: Testspace push test content | ||
if: ${{ (!github.event.repository.private) && always() && (matrix.arch != 'arm64') }} | ||
run: | | ||
testspace "[${{ github.workflow }} / Test Report/ ${{ matrix.target }}-${{ matrix.arch }}]./build/test_reports/projmgrunittests-*.xml" | ||
coverage: | ||
if: | | ||
(github.event_name == 'pull_request') || | ||
((github.event_name == 'pull_request') || | ||
(github.event_name == 'push') || | ||
(github.event_name == 'release' && startsWith(github.ref, 'refs/tags/tools/projmgr/')) || | ||
(github.event_name == 'release' && startsWith(github.ref, 'refs/tags/tools/projmgr/'))) && | ||
((github.event.schedule != '') && (!github.event.repository.private)) | ||
env: | ||
lcov_base: https://github.com/linux-test-project/lcov/releases/download/v1.15/ | ||
|
@@ -353,6 +364,11 @@ jobs: | |
with: | ||
submodules: true | ||
|
||
- name: Testspace client install & config | ||
uses: testspace-com/setup-testspace@v1 | ||
with: | ||
domain: ${{github.repository_owner}} | ||
|
||
# https://github.com/Open-CMSIS-Pack/devtools-build-action | ||
- name: Build ProjMgrUnitTests | ||
uses: Open-CMSIS-Pack/devtools-build-action@arm64 | ||
|
@@ -397,8 +413,24 @@ jobs: | |
genhtml coverage_projmgr.info --output-directory coverage_projmgr --branch-coverage | ||
working-directory: ./build/tools/projmgr/ | ||
|
||
# testspace changes start | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install lcov_cobertura | ||
- name: Convert to xml | ||
run: | | ||
lcov_cobertura ./build/tools/projmgr/coverage_projmgr.info | ||
- name: Testspace push coverage | ||
run: | | ||
testspace "[${{ github.workflow }} / Code Coverage]./coverage.xml" | ||
# testspace changes start | ||
|
||
- name: Upload Report to Codecov | ||
if: ${{ !github.event.repository.private }} | ||
uses: Wandalen/[email protected] | ||
with: | ||
action: codecov/codecov-action@v3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,6 +93,12 @@ jobs: | |
with: | ||
submodules: recursive | ||
|
||
- name: Testspace client install & config | ||
if: ${{ !github.event.repository.private }} | ||
uses: testspace-com/setup-testspace@v1 | ||
with: | ||
domain: ${{github.repository_owner}} | ||
|
||
# https://github.com/Open-CMSIS-Pack/devtools-build-action | ||
- name: Build SVDConvUnitTests | ||
uses: Open-CMSIS-Pack/devtools-build-action@arm64 | ||
|
@@ -139,11 +145,17 @@ jobs: | |
if-no-files-found: error | ||
retention-days: ${{ needs.setup.outputs.retention_days }} | ||
|
||
- name: Testspace push unit test content | ||
if: ${{ (!github.event.repository.private) && always() && (matrix.arch != 'arm64') }} | ||
run: | | ||
testspace "[${{ github.workflow }} / Test Report/ ${{ matrix.target }}-${{ matrix.arch }}]./build/test_reports/svdconvunittests-*.xml" | ||
testspace "[${{ github.workflow }} / Test Report/ ${{ matrix.target }}-${{ matrix.arch }}]./build/test_reports/svdconvintegtests-*.xml" | ||
coverage: | ||
if: | | ||
(github.event_name == 'pull_request') || | ||
((github.event_name == 'pull_request') || | ||
(github.event_name == 'push') || | ||
(github.event_name == 'release' && startsWith(github.ref, 'refs/tags/tools/svdconv/')) || | ||
(github.event_name == 'release' && startsWith(github.ref, 'refs/tags/tools/svdconv/'))) && | ||
((github.event.schedule != '') && (!github.event.repository.private)) | ||
env: | ||
lcov_base: https://github.com/linux-test-project/lcov/releases/download/v1.15/ | ||
|
@@ -162,6 +174,11 @@ jobs: | |
with: | ||
submodules: recursive | ||
|
||
- name: Testspace client install & config | ||
uses: testspace-com/setup-testspace@v1 | ||
with: | ||
domain: ${{github.repository_owner}} | ||
|
||
# https://github.com/Open-CMSIS-Pack/devtools-build-action | ||
- name: Build SVDConvUnitTests | ||
uses: Open-CMSIS-Pack/devtools-build-action@arm64 | ||
|
@@ -232,8 +249,24 @@ jobs: | |
genhtml coverage_svdconv.info --output-directory coverage_svdconv --branch-coverage | ||
working-directory: ./build/tools/svdconv | ||
|
||
# testspace changes start | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install lcov_cobertura | ||
- name: Convert to xml | ||
run: | | ||
lcov_cobertura ./build/tools/svdconv/coverage_svdconv.info | ||
- name: Testspace push coverage | ||
run: | | ||
testspace "[${{ github.workflow }} / Code Coverage]./coverage.xml" | ||
# testspace changes start | ||
|
||
- name: Upload Report to Codecov | ||
if: ${{ !github.event.repository.private }} | ||
uses: Wandalen/[email protected] | ||
with: | ||
action: codecov/codecov-action@v3 | ||
|