-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
250 changed files
with
2,735 additions
and
998 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 |
---|---|---|
|
@@ -7,41 +7,57 @@ on: | |
branches: [ "master" ] | ||
|
||
env: | ||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
BUILD_TYPE: Release | ||
WITH_DLT_UNIT_TESTS: ON | ||
WITH_DLT_COVERAGE: ON | ||
BUILD_GMOCK: OFF | ||
|
||
jobs: | ||
build: | ||
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac. | ||
# You can convert this to a matrix build if you need cross-platform coverage. | ||
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Prepare submodule | ||
run: | | ||
git submodule init | ||
git submodule init | ||
git submodule update | ||
- name: Configure CMake | ||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a | ||
# single-configuration generator such as make. | ||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type | ||
run: | | ||
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \ | ||
-DWITH_DLT_UNIT_TESTS=${{env.WITH_DLT_UNIT_TESTS}} \ | ||
-DWITH_DLT_COVERAGE=${{env.WITH_DLT_COVERAGE}} \ | ||
-DBUILD_GMOCK=${{env.BUILD_GMOCK}} | ||
- name: Build | ||
# Build your program with the given configuration | ||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | ||
|
||
- name: Test | ||
working-directory: ${{github.workspace}}/build | ||
# Execute tests defined by the CMake configuration. | ||
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail | ||
run: ctest -C ${{env.BUILD_TYPE}} | ||
|
||
- name: Install dependencies | ||
run: sudo apt-get install lcov | ||
|
||
- name: Generate lcov report | ||
working-directory: ${{github.workspace}} | ||
run: bash util/dlt_coverage_report/lcov_report_generator.sh build -xe | ||
|
||
- name: Archive coverage results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: dlt_coverage_report | ||
path: ${{github.workspace}}/dlt_lcov_report | ||
|
||
- name: Upload lcov report | ||
if: github.ref == 'refs/heads/master' | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git checkout -b dlt_coverage_report | ||
git submodule deinit -f googletest | ||
rm -rf .git/modules/googletest | ||
git rm -f googletest | ||
git add --all | ||
git commit -m "Upload lcov report for dlt-daemon" | ||
git push -f origin dlt_coverage_report |
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 |
---|---|---|
|
@@ -15,4 +15,5 @@ include/dlt/dlt_user.h | |
*.out | ||
*.swp | ||
cmake-build-debug/ | ||
.vscode/ | ||
.vscode/ | ||
googletest/ |
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
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
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
Oops, something went wrong.