cmake: Make builds of make review/reproduce quiet

Reduce noise on the output. The build process still outputs the build
log in case it fails.
This commit is contained in:
Tomas Babej
2021-01-16 12:43:15 -05:00
parent c72e1ea379
commit 71f477e013

View File

@@ -155,13 +155,13 @@ foreach (doc_FILE ${doc_FILES})
endforeach (doc_FILE)
add_custom_command(OUTPUT run-review
COMMAND docker build --build-arg PR=$(PR) -t taskwarrior-review:$(PR) - < scripts/review-dockerfile
COMMAND docker build -q --build-arg PR=$(PR) -t taskwarrior-review:$(PR) - < scripts/review-dockerfile
COMMAND docker run --rm --hostname pr-$(PR) -it taskwarrior-review:$(PR) bash || :
)
add_custom_target(review DEPENDS run-review)
add_custom_command(OUTPUT run-reproduce
COMMAND docker build --build-arg RELEASE=$(RELEASE) -t taskwarrior-reproduce:$(RELEASE) - < scripts/reproduce-dockerfile
COMMAND docker build -q --build-arg RELEASE=$(RELEASE) -t taskwarrior-reproduce:$(RELEASE) - < scripts/reproduce-dockerfile
COMMAND docker run --rm --hostname tw-$(RELEASE) -it taskwarrior-reproduce:$(RELEASE) bash || :
)
add_custom_target(reproduce DEPENDS run-reproduce)