cmake: Add a custom target for reproducing issue reports

Use by issuing command "make RELEASE=v2.5.2 reproduce" where v2.5.2 can
be substituted by other (tagged) release.
This commit is contained in:
Tomas Babej
2021-01-16 12:29:17 -05:00
parent 35cab8845a
commit 94a06ed38a
2 changed files with 37 additions and 0 deletions

View File

@@ -160,6 +160,12 @@ add_custom_command(OUTPUT run-review
)
add_custom_target(review DEPENDS run-review)
add_custom_command(OUTPUT run-reproduce
COMMAND docker build -f scripts/reproduce-dockerfile --build-arg RELEASE=$(RELEASE) -t taskwarrior-reproduce:$(RELEASE) .
COMMAND docker run --rm --hostname tw-$(RELEASE) -it taskwarrior-reproduce:$(RELEASE) bash || :
)
add_custom_target(reproduce DEPENDS run-reproduce)
# ---
set (CPACK_SOURCE_GENERATOR "TGZ")