This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Run a command when a gerrit patchset is created

Project Description

gerritexec

gerritexec is a command line tool listening to gerrit on a designated project. On each new patchset, (or when a comment contains recheck no bug or run gerritexec) it will:

  • git clone the project
  • git pull the patchset
  • cd in the git tree and run a script
  • positively review the patchset ( +1 ) if the program exit(0)
  • negatively review the patchset ( -1 ) otherwise

Examples

Positively review all patchsets in the stackforge/puppet-ceph project:

gerritexec --hostname review.openstack.org \
           --username puppetceph \
           --script 'true' \
           --project stackforge/puppet-ceph

Run the integration tests found in the git tree of the stackforge/puppet-ceph project:

gerritexec --hostname review.openstack.org \
           --username puppetceph \
           --script 'bundle exec rake spec:system' \
           --project stackforge/puppet-ceph

Hacking

  • Get the code : git clone git@gitorious.org:gerritexec/gerritexec.git
  • Run the tests : tox
  • Tag a version
  • edit the version field of setup.cfg
  • git tag -a -m ‘whatever’ 2.1.1
  • git push –tags
  • Check the documentation : rst2html < README.rst > /tmp/a.html
  • Publish
Release History

Release History

This version
History Node

2.2.0

History Node

2.1.0

History Node

2.0.0

History Node

1.2.0.a16.g4e04203

History Node

1.1.0.a14.ga357098

History Node

1.0.0.a6.g53e06ae

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
gerritexec-2.2.0.tar.gz (19.0 kB) Copy SHA256 Checksum SHA256 Source Jun 28, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting