mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CMake: Add custom review target
Use with Github PR ids as follows: make PR=2358 review
This commit is contained in:
parent
522ef20a85
commit
ab12e3fafd
1 changed files with 6 additions and 0 deletions
|
@ -154,6 +154,12 @@ foreach (doc_FILE ${doc_FILES})
|
|||
install (FILES ${doc_FILE} DESTINATION ${TASK_DOCDIR})
|
||||
endforeach (doc_FILE)
|
||||
|
||||
add_custom_command(OUTPUT run-review
|
||||
COMMAND docker build -f scripts/review-dockerfile --build-arg PR=$(PR) -t taskwarrior-review:$(PR) .
|
||||
COMMAND docker run --rm --hostname pr-$(PR) -it taskwarrior-review:$(PR) bash || :
|
||||
)
|
||||
add_custom_target(review DEPENDS run-review)
|
||||
|
||||
# ---
|
||||
|
||||
set (CPACK_SOURCE_GENERATOR "TGZ")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue