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
python setup.py sdist upload –sign
trim old versions at https://pypi.python.org/pypi/gerritexec
Release files for gerritexec 2.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gerritexec-2.2.0.tar.gz | 19.0 kB | Details |
Release files / gerritexec-2.2.0.tar.gz
| Download URL | gerritexec-2.2.0.tar.gz |
|---|---|
| Size | 19.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
853e98d6db5ba35a1dc9aa33850a8d170da93a688cfee01606ff1fb003c8f1d5
|
|
BLAKE2b-256 checksum How to use checksums |
7384bb34c5876071ed83fbbcacb46a6acf6da6b8d8101ba996f9741cd9849aa5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |