提交 f994e49c 编写于 作者: D Dmitriy Zaporozhets

Merge branch 'dz-add-codeclimate-job' into 'master'

Add codeclimate job to .gitlab-ci.yml

See merge request !12086
...@@ -10,10 +10,10 @@ engines: ...@@ -10,10 +10,10 @@ engines:
languages: languages:
- ruby - ruby
- javascript - javascript
exclude_paths:
- "lib/api/v3/*"
eslint: eslint:
enabled: true enabled: true
fixme:
enabled: true
rubocop: rubocop:
enabled: true enabled: true
ratings: ratings:
...@@ -35,4 +35,13 @@ exclude_paths: ...@@ -35,4 +35,13 @@ exclude_paths:
- node_modules/ - node_modules/
- spec/ - spec/
- vendor/ - vendor/
- lib/api/v3/ - .yarn-cache/
- tmp/
- builds/
- coverage/
- public/
- shared/
- webpack-report/
- log/
- backups/
- coverage-javascript/
...@@ -456,6 +456,21 @@ karma: ...@@ -456,6 +456,21 @@ karma:
paths: paths:
- coverage-javascript/ - coverage-javascript/
codeclimate:
before_script: []
image: docker:latest
stage: test
variables:
SETUP_DB: "false"
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]
coverage: coverage:
stage: post-test stage: post-test
services: [] services: []
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册