Skip to content

Instantly share code, notes, and snippets.

@gibizer
Last active November 28, 2019 10:20
Show Gist options
  • Save gibizer/4b1c0e5356eb93efcc56845bc0cc040e to your computer and use it in GitHub Desktop.
Save gibizer/4b1c0e5356eb93efcc56845bc0cc040e to your computer and use it in GitHub Desktop.
# run test for each commit in a commit chain. Stop at the commit that fails the test.
# It allows editing the commit, then git commit --amend , then git rebase --continue ,
# the --continue will re-run the tests before it moves to the next commit.
# The progress of the rebase can be monitored in the file .git/rebase-merge/done
git rebase -i <rebase-target> --reschedule-failed-exec --exec "tox -e py27 && tox -e fast8"
# run test in parallel
git rebase -i <rebase-target> --reschedule-failed-exec --exec " echo 'functional py27 fast8' | tr ' ' '\n' | parallel --lb 'set -o pipefail && rtox -e {} | tee /tmp/{}.log'"
git rebase -i <rebase-target> --reschedule-failed-exec --exec "ptox functional py27 fast8"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment