Skip to content

Instantly share code, notes, and snippets.

@gregorriegler
Last active August 9, 2022 12:26
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
justfile for continuous testing and tcr
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