Skip to content

Instantly share code, notes, and snippets.

@jdlrobson
Created June 18, 2015 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdlrobson/32b607f8009e897ee80c to your computer and use it in GitHub Desktop.
Save jdlrobson/32b607f8009e897ee80c to your computer and use it in GitHub Desktop.
echo 'Scanning'
# Download the latest oldest patch that has a score of 0 for Gather that is not marked as wip.
gerrit.py --ignore 'WIP' --project 'mediawiki/extensions/Gather' --feeling_lucky 1 --ltscore 1 --gtscore -1
bundle install > tmp
msg=$(bundle exec cucumber features/ --format rerun)
# Run GerritCommandLine script with score and message
if [ $? -ne 0 ]; then
echo 'bad'
gerrit.py --review -1 --message "${msg}"
else
echo 'good'
gerrit.py --review 1 --message "${msg}"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment