codequality: Install jq directly instead of pulling it via docker

This commit is contained in:
Nick Thomas 2018-03-02 17:10:50 +00:00
parent e17d8ad847
commit 57ce7c655c
No known key found for this signature in database
GPG key ID: 2A313A47AFADACE9

View file

@ -619,9 +619,10 @@ codequality:
cache: {}
dependencies: []
script:
- apk update && apk add jq
- ./scripts/codequality analyze -f json > raw_codeclimate.json || true
# The following line keeps only the fields used in the MR widget, reducing the JSON artifact size
- cat raw_codeclimate.json | docker run -i stedolan/jq -c 'map({check_name,description,fingerprint,location})' > codeclimate.json
- jq -c 'map({check_name,description,fingerprint,location})' raw_codeclimate.json > codeclimate.json
artifacts:
paths: [codeclimate.json]
expire_in: 1 week