Skip to content

Commit

Permalink
Merge pull request #92 from Yelp/run-precommit-on-travis
Browse files Browse the repository at this point in the history
Update make test to run pre-commit hooks on the whole codebase
  • Loading branch information
cortinico committed Feb 4, 2020
2 parents 80e2315 + aeb2192 commit bca4480
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: install-hooks regenerate-samples test
.PHONY: install-hooks regenerate-samples test run-hooks

.git/hooks/pre-commit: venv
${CURDIR}/venv/bin/pre-commit install --install-hooks
Expand All @@ -11,7 +11,10 @@ regenerate-samples:
${CURDIR}/gradlew plugin:publishToMavenLocal
${CURDIR}/gradlew generateSwagger

test:
run-hooks: venv
${CURDIR}/venv/bin/pre-commit run --all-files

test: run-hooks
${CURDIR}/gradlew plugin:build
${CURDIR}/gradlew plugin:publishToMavenLocal
${CURDIR}/gradlew generateSwagger
Expand Down

0 comments on commit bca4480

Please sign in to comment.