Forked from gregorriegler/justfile for tdd and tcr
Last active
July 25, 2022 19:56
-
-
Save tedyoung/c26ab1086b6cc5bad87c989be0be3ae6 to your computer and use it in GitHub Desktop.
justfile for continuous testing and tcr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# justfile (see https://just.systems/man/en/ for docs on "just") | |
goal +MESSAGE: | |
git pull --rebase | |
git commit --allow-empty -m "Goal: {{MESSAGE}}" | |
git push | |
commit: | |
@git add . | |
-@git commit -am "wip" | |
# requires Maven Daemon: install with SDKMAN: 'sdk install mvnd' | |
# more docs at: https://github.com/apache/maven-mvnd | |
test: | |
clear | |
@mvnd test | |
test-commit: | |
just test | |
just commit | |
# trying this out (use test-commit for now) | |
test-mob-next: | |
just test | |
mob next | |
integrate: | |
git pull --rebase | |
just test | |
just commit | |
git push | |
# requires watchexec: install with Homebrew: 'brew install watchexec' | |
# more docs at: https://github.com/watchexec/watchexec#install | |
# LOCAL TDD: if tests pass, then does git commit | |
tdd: | |
watchexec -e java just test-commit | |
# trying this out using `mob` instead of git | |
tdd-mob: | |
watchexec -e java just test-mob-next | |
ci: | |
watchexec -e java just integrate | |
revert: | |
@git reset --hard &> /dev/null | |
@git clean -df &> /dev/null | |
@echo -e "\033[0;31m=== REVERTED ===" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment