- Clone this repository.
- Change directory to
image/
- Build
codequality
image and push it into your gitlab project's registry, give itcodequality
name, for example:./build-and-push-to-registry.sh gitlab.com/mygroup/myproject/codequality
- Put tools' configuration files (see
examples/
) into a project repository root, set them up. - Add code quality jobs into
.gitlab-ci.yml
(seeexamples/
).
Done!
Prerequisites:
- Project already has code quality tools configuration files.
- Docker is installed.
Steps to run code quality check locally:
- Clone this repository.
- Go to a directory where you project resists.
- Run
/path/to/codequality/cq <tool>
, for example:~/projects/tools/codequality/cq phpcs