Merge branch 'dz-cleanup-codeclimate-json' into 'master'

Remove unused data from code climate artifact

See merge request !12494
This commit is contained in:
Kamil Trzciński 2017-06-28 10:18:15 +00:00
commit 9a61b3799e
1 changed files with 1 additions and 0 deletions

View File

@ -476,6 +476,7 @@ codeclimate:
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
- sed -i.bak 's/\({"body":"\)[^"]*\("}\)/\1\2/g' codeclimate.json
artifacts:
paths: [codeclimate.json]