wunderio / drupal-gitlab-local-pipelines
Run Drupal Gitlab pipeline tasks locally with GrumpPHP.
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Type:composer-plugin
Requires
- composer-plugin-api: ^2.0
- drupal/coder: ^8.3
- phpro/grumphp: ^2.6
- sirbrillig/phpcs-variable-analysis: ^2.11
- slevomat/coding-standard: ^8.15
- squizlabs/php_codesniffer: ^3.10
Requires (Dev)
- composer/composer: ^2.0
README
This is a small project to try and run Drupal GitLab tasks locally with GrumpPHP via Docker.
Installation
-
Install wunderio/drupal-gitlab-local-pipelines Composer package using our Docker image (answer 'y' when prompted):
docker run -it -v "$(pwd)":/app hkirsman/dglp composer require wunderio/drupal-gitlab-local-pipelines --dev
or use your local Composer:
composer require wunderio/drupal-gitlab-local-pipelines --dev
-
Add vendor and grumphp.yml to .gitignore file:
# Composer vendor composer.lock grumphp.yml
-
Start using, either update your code and try to commit or run the scanner on whole codebase:
docker run -it -v "$(pwd)":/app hkirsman/dglp vendor/bin/grumphp run
Pushing Docker changes Docker Hub
-
Create image
make build
-
Log in to Docker Hub:
docker login
-
Tag Docker Image
docker tag hkirsman/dglp hkirsman/dglp:latest
-
Push Docker Image
docker push hkirsman/dglp:latest