mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-18 18:56:28 +00:00
build(test): Fix redundant target recipe runs
The VCS hook installation was running when no changes had been made to `./.pre-commit-config.yaml` because something else had changed the contents of `./.tox/` resulting in it having a newer modification time stamp. Fix this by using an explicit log file as the target instead of the directory.
This commit is contained in:
parent
5da9b8c398
commit
b8268500ef
8
Makefile
8
Makefile
@ -31,7 +31,7 @@ default:
|
|||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
## Set up and build for local development
|
## Set up and build for local development
|
||||||
build: .tox .git/hooks/pre-commit .git/hooks/pre-push
|
build: .tox/log/create-venvs.log .git/hooks/pre-commit .git/hooks/pre-push
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
## Run all tests and code reports
|
## Run all tests and code reports
|
||||||
@ -240,8 +240,8 @@ upload-tarballs:
|
|||||||
src/allmydata/_version.py:
|
src/allmydata/_version.py:
|
||||||
$(MAKE) make-version
|
$(MAKE) make-version
|
||||||
|
|
||||||
.tox: tox.ini setup.py
|
.tox/log/create-venvs.log: tox.ini setup.py
|
||||||
tox --notest -p all
|
tox --notest -p all | tee -a "$(@)"
|
||||||
|
|
||||||
$(VCS_HOOKS): .tox .pre-commit-config.yaml
|
$(VCS_HOOKS): .tox/log/create-venvs.log .pre-commit-config.yaml
|
||||||
"./$(<)/py36/bin/pre-commit" install --hook-type $(@:.git/hooks/%=%)
|
"./$(<)/py36/bin/pre-commit" install --hook-type $(@:.git/hooks/%=%)
|
||||||
|
Loading…
Reference in New Issue
Block a user