-
Notifications
You must be signed in to change notification settings - Fork 198
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
CI: CDash dashboard support #5566
base: development
Are you sure you want to change the base?
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -155,8 +155,15 @@ jobs: | |||||||||||||||||||||||||||||||||||||||
- bash: | | ||||||||||||||||||||||||||||||||||||||||
# set options | ||||||||||||||||||||||||||||||||||||||||
set -o nounset errexit pipefail | ||||||||||||||||||||||||||||||||||||||||
# run tests (exclude pytest.AMReX when running Python tests) | ||||||||||||||||||||||||||||||||||||||||
ctest --test-dir build --output-on-failure -E AMReX | ||||||||||||||||||||||||||||||||||||||||
# determine if the build was triggered by a push to the development branch | ||||||||||||||||||||||||||||||||||||||||
if [[ "$(Build.SourceBranch)" == "refs/heads/development" ]]; then | ||||||||||||||||||||||||||||||||||||||||
# run tests (exclude pytest.AMReX when running Python tests) | ||||||||||||||||||||||||||||||||||||||||
# and submit results to CDash as Continuous | ||||||||||||||||||||||||||||||||||||||||
ctest --test-dir build --output-on-failure -E AMReX -D Continuous | ||||||||||||||||||||||||||||||||||||||||
else | ||||||||||||||||||||||||||||||||||||||||
# run tests (exclude pytest.AMReX when running Python tests) | ||||||||||||||||||||||||||||||||||||||||
ctest --test-dir build --output-on-failure -E AMReX | ||||||||||||||||||||||||||||||||||||||||
fi | ||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is what I would try first, based on the information reported in #5566 (comment). Update There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again on this, and on the issues reported in #5566 (comment), reading the documentation more carefully it seems to me that the various "steps" (e.g., There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||||||||||||||
displayName: 'Test' | ||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||
- bash: | | ||||||||||||||||||||||||||||||||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
## This file should be placed in the root directory of your project. | ||
## Then modify the CMakeLists.txt file in the root directory of your | ||
## project to incorporate the testing dashboard. | ||
## | ||
## # The following are required to submit to the CDash dashboard: | ||
## ENABLE_TESTING() | ||
## INCLUDE(CTest) | ||
|
||
set(CTEST_PROJECT_NAME WarpX) | ||
set(CTEST_NIGHTLY_START_TIME 08:00:00 UTC) | ||
|
||
set(CTEST_SUBMIT_URL https://my.cdash.org/submit.php?project=WarpX) | ||
|
||
set(CTEST_DROP_SITE_CDASH TRUE) |
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.
If this does not work (but we'll know only after merging the PR into
development
), we can also try the following (see https://learn.microsoft.com/en-us/azure/devops/pipelines/build/variables for more documentation):