Last active
August 9, 2022 12:26
-
-
Save gregorriegler/eafaa74250ff166925296dd58d4e62be 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
goal +MESSAGE: | |
git pull --rebase --autostash | |
git commit --allow-empty -m "Goal: {{MESSAGE}}" | |
git push | |
done +MESSAGE: | |
git pull --rebase --autostash | |
git commit --allow-empty -m "{{MESSAGE}}" | |
git push | |
test: | |
clear | |
@./gradlew test | |
commit: | |
@git add . | |
-@git commit -am "wip" | |
test-commit: | |
just test | |
just commit | |
integrate: | |
git pull --rebase --autostash | |
just test-commit | |
git push | |
tdd: | |
watchexec -e java just test | |
tdd-commit: | |
watchexec -e java just test-commit | |
ci: | |
watchexec -e java just integrate | |
revert: | |
@git reset --hard &> /dev/null | |
@git clean -df &> /dev/null | |
@echo -e "\033[0;31m=== REVERTED ===" | |
tcr: | |
@just test && just commit || just revert |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment