Ajout d'une étape de linting dans DroneCi
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Nigel Sheldon 2020-11-21 15:52:22 +01:00
parent 1614145b18
commit e7bf1ca1e8

View File

@ -8,6 +8,12 @@ platform:
arch: amd64 arch: amd64
steps: steps:
- name: lint
image: php:7.2-alpine
commands:
- curl -L https://cs.symfony.com/download/php-cs-fixer-v2.phar -o php-cs-fixer.phar
- php php-cs-fixer.phar fix htdocs --dry-run --using-cache=no --verbose --stop-on-violation
- php php-cs-fixer.phar fix onyx2 --dry-run --using-cache=no --verbose --stop-on-violation
- name: publish - name: publish
image: plugins/docker image: plugins/docker
settings: settings: