commit | 952b3af1c5da02c8fed93847b6edda5c4b047c6f | [log] [tgz] |
---|---|---|
author | David Pursehouse <david.pursehouse@sonymobile.com> | Thu Nov 05 16:50:11 2015 +0900 |
committer | David Pursehouse <david.pursehouse@sonymobile.com> | Mon Nov 09 16:24:38 2015 -0800 |
tree | 7b70c419f54cdb8212d060fa83ac341f4f93551e | |
parent | ba698359647f565421880b0487d20df086e7f82a [diff] |
Allow to switch Note DB on or off for server tests Introduce a new base class, GerritServerTests, that can cause derived test classes to run with or without the note DB enabled, depending on the value of the GERRIT_ENABLE_NOTEDB environment variable. Tests can be run with note DB enabled by: GERRIT_ENABLE_NOTEDB=Y buck test --no-results-cache Setting the variable to any of the values 'Y', 'YES' or 'TRUE' (case insensitive) will cause the note DB to be enabled for the tests. The --no-results-cache option must be used when alternating between on and off, so that buck correctly re-runs the tests. Update existing tests that currently run with multiple configurations (default, and note DB enabled) to use the new base class. Remove the isNoteDbTestEnabled method from AbstractDaemonTest and instead static import the one now defined in GerritServerTests. Change-Id: Id30d6a622ec3d2e05ea0bec300c85a080ec8c053
Gerrit is a code review and project management tool for Git based projects.
Gerrit makes reviews easier by showing changes in a side-by-side display, and allowing inline comments to be added by any reviewer.
Gerrit simplifies Git based project maintainership by permitting any authorized user to submit changes to the master Git repository, rather than requiring all approved changes to be merged in by hand by the project maintainer.
For information about how to install and use Gerrit, refer to the documentation.
Our canonical Git repository is located on googlesource.com. There is a mirror of the repository on Github.
Please report bugs on the issue tracker.
Gerrit is the work of hundreds of contributors. We appreciate your help!
Please read the contribution guidelines.
Note that we do not accept Pull Requests via the Github mirror.
The IRC channel on freenode is #gerrit. An archive is available at: echelog.com.
The Developer Mailing list is repo-discuss on Google Groups.
Gerrit is provided under the Apache License 2.0.
Install Buck and run the following:
git clone --recursive https://gerrit.googlesource.com/gerrit cd gerrit && buck build release
The instruction how to configure GerritForge/BinTray repositories is here
On Debian/Ubuntu run:
apt-get update & apt-get install gerrit=<version>-<release>
NOTE: release is a counter that starts with 1 and indicates the number of packages that have been released with the same version of the software.
On CentOS/RedHat run:
yum clean all && yum install gerrit-<version>[-<release>]
NOTE: release is optional. Last released package of the version is installed if the release number is omitted.