Skip to content

Instantly share code, notes, and snippets.

@hyperized
Last active May 21, 2022 12:46
Show Gist options
  • Save hyperized/6c4f242727f64536a5e56fbc494bc587 to your computer and use it in GitHub Desktop.
Save hyperized/6c4f242727f64536a5e56fbc494bc587 to your computer and use it in GitHub Desktop.
---
stages:
- testing
- qa
phpstan:
image:
name: hyperized/phpstan:latest
entrypoint: [""]
stage: testing
script:
- /opt/phpstan/vendor/bin/phpstan analyse src --level max --error-format gitlab > phpstan.json
artifacts:
paths:
- phpstan.json
expire_in: 1 hour
when: always
allow_failure: true
psalm:
stage: testing
image:
name: hyperized/psalm:latest
entrypoint: [""]
script:
- /opt/psalm/vendor/bin/psalm --root $CI_PROJECT_DIR --output-format=json > psalm.json
artifacts:
paths:
- psalm.json
expire_in: 1 hour
when: always
allow_failure: true
codeclimate:
stage: qa
needs:
- phpstan
- psalm
image:
name: hyperized/json-to-code-climate-subset-converter:latest
entrypoint: [""]
script:
- /usr/bin/converter convert --phpstan --phpstan-json-file=phpstan.json --psalm --psalm-json-file=psalm.json
artifacts:
reports:
codequality: code-climate.json
paths:
- code-climate.json
expire_in: 1 hour
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment