catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Copy reporters to single_include during releases
- Commit
f5910f38ef38ac2cca9f3830804abf6d9a8d40bf- Author
- Martin Hořeňovský ·
- Parents
421ab160627d
Changes
scripts/releaseCommon.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/scripts/releaseCommon.py b/scripts/releaseCommon.py index 688b13ce..56c9e0d3 100644 --- a/scripts/releaseCommon.py +++ b/scripts/releaseCommon.py @@ -142,10 +142,19 @@ def performUpdates(version): # First update version file, so we can regenerate single header and # have it ready for upload to wandbox, when updating readme version.updateVersionFile() - + import generateSingleHeader generateSingleHeader.generate(version) - + + # Then copy the reporters to single include folder to keep them in sync + # We probably should have some kind of convention to select which reporters need to be copied automagically, + # but this works for now + import shutil + for rep in ('automake', 'tap', 'teamcity'): + sourceFile = os.path.join(catchPath, 'include/reporters/catch_reporter_{}.hpp'.format(rep)) + destFile = os.path.join(catchPath, 'single_include/catch_reporter_{}.hpp'.format(rep)) + shutil.copyfile(sourceFile, destFile) + updateReadmeFile(version) updateConanFile(version) updateConanTestFile(version)