Skip to content

Interlutions/docker-phpcs-72

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

docker-phpcs-72

Basic Alpine based docker image for running phpcs on a specific project folder

Note: A valid phpcs.xml needs to be present in the project folder

This image can be used in a Gitlab-CI context

###############################
# part of a citlab-ci.yml
###############################

stages:
  - syntax
  
phpcs:
  image: interlutions/docker-phpcs-72:latest
  stage: syntax
  script:
    - cd project
    - phpcs --error-severity=1 --warning-severity=1 --extensions=php

or standalone using the command line.

###############################
# commandline-usage
###############################

docker run -v $(pwd)/project:/project -w=/project --rm interlutions/docker-phpcs-72 phpcs --error-severity=1 --warning-severity=1 --extensions=php

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published