[gjs: 1/2] CI: analyze source code quality
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 1/2] CI: analyze source code quality
- Date: Thu, 1 Mar 2018 06:29:05 +0000 (UTC)
commit bbe593d01c479ddb5daade5aa6b92fb4442ebe57
Author: Claudio André <claudioandre br gmail com>
Date: Mon Feb 26 23:39:32 2018 -0300
CI: analyze source code quality
Analyze source code quality using GitLab Code Quality. It uses
Code Climate Engines, which are free and open source. It doesn’t require
any subscription.
Closes #10
.gitlab-ci.yml | 15 +++++++++++++++
1 file changed, 15 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bea8762..1a9c23e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -91,6 +91,21 @@ coverage:
except:
- /^wip\/.*/
+codequality:
+ stage: thorough_tests
+ image: docker:latest
+ variables:
+ DOCKER_DRIVER: overlay
+ services:
+ - docker:dind
+ script:
+ - docker pull codeclimate/codeclimate
+ - docker run --env CODECLIMATE_CODE="$PWD" --volume "$PWD":/code --volume
/var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate analyze -f json >
codeclimate.json
+ artifacts:
+ paths: [codeclimate.json]
+ except:
+ - /^wip\/.*/
+
cppcheck:
<<: *build
stage: static_analysis
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]