Skip to main content

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

Download files

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

Source Distribution

gerritexec-2.0.0.tar.gz (18.8 kB view details)

Uploaded Source

File details

Details for the file gerritexec-2.0.0.tar.gz.

File metadata

  • Download URL: gerritexec-2.0.0.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gerritexec-2.0.0.tar.gz
Algorithm Hash digest
SHA256 828b8dbba3736fa83fd907a03145656dc15b24ce1e8f32262ccf9e084b22cbb6
MD5 347780c2e8485b9eecdae589f06cd74f
BLAKE2b-256 e08df8fb6d88389765d667ba7a6d7f01bd78246628026bb7188461f43dd89365

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page