run-success.mk: Record last successful run
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 5m27s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 4m43s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 5m0s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m16s
CI / Packaging test (push) Successful in 0s
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 5m27s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 4m43s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 5m0s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m16s
CI / Packaging test (push) Successful in 0s
Add a run-success.mk which provides a $(RUN_SUCCESS_CREATE_MARKER) variable, and include it from run.mk and py-run.mk. If it's not overridden, it logs the current commit to a marker file if the run succeeds. The marker file is ignored from Git and cleaned in the context of the distclean target. The machinery can be customized by variables: RUN_SUCCESS_MARKER is the name of the marker file RUN_SUCCESS_RECORD_CMD is the generator for its content For example, putting this into local.mk or jw-pkg/make/local.mk will record the hashes of every repository in the entire workspace: define RUN_SUCCESS_RECORD_CMD make git-log-1 make git-log-tree-1 endef Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
24fec38f75
commit
2fcda74277
5 changed files with 24 additions and 5 deletions
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
include $(JWBDIR)/make/defs.mk
|
||||
include $(JWBDIR)/make/defs-cpp.mk
|
||||
include $(JWBDIR)/make/run-success.mk
|
||||
|
||||
DIR_BASENAME = $(notdir $(CWD))
|
||||
|
||||
|
|
@ -76,6 +77,7 @@ run test: run-deps
|
|||
@echo "wine $(EXE_CMD)"
|
||||
@echo -e "set PATH=%PATH;$(DLL_PATH)\n" \
|
||||
"$(EXE_CMD)" | wine cmd
|
||||
$(RUN_SUCCESS_CREATE_MARKER)
|
||||
|
||||
start: run-deps
|
||||
@echo "wine $(EXE_CMD)"
|
||||
|
|
@ -85,6 +87,7 @@ start: run-deps
|
|||
else
|
||||
run test: run-deps
|
||||
$(EXE_CMD)
|
||||
$(RUN_SUCCESS_CREATE_MARKER)
|
||||
start: run-deps
|
||||
$(EXE_CMD) &
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue