Travis: test build with BUILD_EXECUTABLES=OFF
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- build-system, ci-cd, testing-qa
Research direction
Start with .travis.yml and inspect its script section, then review the existing ctest and recon_test_pack/run_test_simulate_and_recon.sh checks. The change is done when those executable-dependent checks are skipped for BUILD_EXECUTABLES=OFF while the Python tests still run and CI exit status remains correct.
Written by the indexing model from the issue text.
Description
Anyone knows how to modify .travis.yml to do the recon_test_pack checks only when executables are build? Could be something like
script:
- |
if ! [[ $EXTRA_BUILD_FLAGS == *"BUILD_EXECUTABLES=OFF"* ]]; then
ctest --output-on-failure
export PATH=$PATH:$TRAVIS_BUILD_DIR/install/bin
cd $TRAVIS_BUILD_DIR/recon_test_pack
./run_test_simulate_and_recon.sh
...
fi
# Run Python tests, making sure we're using the correct Python interpreter
...
but I'm not sure what it will do for exit status will be etc. Could also use ( set -ev ...). not sure what is best. @casperdcl ?
Originally posted by @KrisThielemans in https://github.com/UCL/STIR/pull/516#issuecomment-618637845
- Dominant language
- C++
- Stars
- 160
- Forks
- 113
- Avg merge
- 12d 15h
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from UCL/STIR
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Sensor initialization takes very long when `--initial-sim-time` is set to current UNIX timestamp Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gazebosim/gz-sensors#662 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
LadybirdBrowser/ladybird#12123 ·