mirror of https://github.com/catchorg/Catch2.git
Copy reporters to single_include during releases
This commit is contained in:
parent
421ab16062
commit
f5910f38ef
|
@ -146,6 +146,15 @@ def performUpdates(version):
|
||||||
import generateSingleHeader
|
import generateSingleHeader
|
||||||
generateSingleHeader.generate(version)
|
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)
|
updateReadmeFile(version)
|
||||||
updateConanFile(version)
|
updateConanFile(version)
|
||||||
updateConanTestFile(version)
|
updateConanTestFile(version)
|
||||||
|
|
Loading…
Reference in New Issue