commit | acd39a2d9def80cbe97b9205bd6c4aa975d3fb89 | [log] [tgz] |
---|---|---|
author | Dmitrii Filippov <dmfilippov@google.com> | Thu Apr 02 10:31:43 2020 +0200 |
committer | Dmitrii Filippov <dmfilippov@google.com> | Wed May 06 15:27:48 2020 +0200 |
tree | 23b32decff88833ff4f9ccae2f7640fecf0a9d00 | |
parent | 6bf35b2ab6f2a8d6b91d4a7342e623d550369686 [diff] |
Add karma-runner and convert some tests to run with karma The following changes are included in this change: * karma-runner is added to the polygerrit-ui/package.json file * bazel rule for karma tests is added to the polygerrit-ui/BUILD file * The run_test.sh script is updated - it runs both deprecated web-component-tester(WCT) tests and karma tests * Commands to run separately karma and wct tests are added to the top level package.json file * The common-test-setup-karma.js file adds global functions to replace functionality provided by the WCT * The postinstall step is added to the polygerrit-ui/package.json file to run 'selenium-standalone install' command. Note, that this is not a new command - it runs during the WCT install (see wct-local/scripts/postinstall.js), but sometimes it fails after switching between different branches. Calling it in the postinstall step of polygerrit-ui/package.json improves the situation. Change-Id: Iaf480d22c5553d98eb7607a0e83a86b66f733caa
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 Developer Mailing list is repo-discuss on Google Groups.
Gerrit is provided under the Apache License 2.0.
Install Bazel and run the following:
git clone --recurse-submodules https://gerrit.googlesource.com/gerrit cd gerrit && bazel 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>]
On Fedora run:
dnf clean all && dnf install gerrit-<version>[-<release>]
Docker images of Gerrit are available on DockerHub
To run a CentOS 7 based Gerrit image:
docker run -p 8080:8080 gerritforge/gerrit-centos7[:version]
To run a Ubuntu 15.04 based Gerrit image:
docker run -p 8080:8080 gerritforge/gerrit-ubuntu15.04[:version]
NOTE: release is optional. Last released package of the version is installed if the release number is omitted.