Skip to content
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

Combine build file of adolc and tests; Add code coverage #79

Merged
merged 23 commits into from
Nov 21, 2024

Conversation

TimSiebert1
Copy link
Collaborator

@TimSiebert1 TimSiebert1 commented Nov 18, 2024

Hi,
this PR includes:

  1. an updated CMakelists.txt that includes a new CMAKE_BUILD_TYPE called Tests and TestsWithCov. If Tests is specified cmake builds the boost-test-adolc (in build dir) without the need of specifying the adolc paths. In addition enables the use of ctest. If TestsWithCov is specified, adolc and boost-test-adolc are compiled with coverage related flags. These flags are required in a corresponding coverage workflow

  2. an adapted workflow tests.yml which now leverages ctest

  3. a workflow coverage.yml for generating a coverage report with lcov and codecov. This is mainly useful if we could add a github-secret for this repository. @awalther1 should be able to do it. If the token is set, the coverage report is posted on a page that would look like this: https://app.codecov.io/gh/TimSiebert1/ADOL-C.

I will update the README.md files for building the test once everything is working well

Copy link

codecov bot commented Nov 18, 2024

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@TimSiebert1
Copy link
Collaborator Author

TimSiebert1 commented Nov 18, 2024

Oh there seems to be a code_cov token already. Nice! Once this is merged we will find the coverage report here: https://app.codecov.io/github/coin-or/ADOL-C.

@TimSiebert1 TimSiebert1 merged commit ea0d26b into coin-or:master Nov 21, 2024
30 of 38 checks passed
@TimSiebert1 TimSiebert1 deleted the update_build_test branch November 21, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant