Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lehigh-university-libraries/drupal-ci
https://github.com/lehigh-university-libraries/drupal-ci
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/lehigh-university-libraries/drupal-ci
- Owner: lehigh-university-libraries
- Created: 2024-10-28T18:50:18.000Z (23 days ago)
- Default Branch: main
- Last Pushed: 2024-11-14T07:10:33.000Z (6 days ago)
- Last Synced: 2024-11-14T08:19:20.832Z (6 days ago)
- Language: Shell
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# drupal-ci
Drupal docker images to easily run linters and phpunit tests.
e.g. to test the module in Drupal 11.0 in php 8.3 you can run
```
MODULE=foo
docker run --rm \
--volume $(pwd):/var/www/drupal/web/modules/contrib/$MODULE \
--env ENABLE_MODULES=$MODULE \
lehighlts/drupal-ci:11.0-php8.3
```## Settings
You can pass some environment variables to the docker image
| Env Var Name | Explanation |
|------------------- |------------------------------------------------------------------------------------------------- |
| `ENABLE_MODULES` | The name of the module to enable (e.g. ENABLE_MODULES=turnstile_protect) |
| `LINT` | 1/0 - whether to run code sniffer with `Drupal` standard on the `ENABLE_MODULES` codebase |
| `DRUPAL_PRACTICE` | 1/0 - whether to run code sniffer with `DrupalPractice` standard on the `ENABLE_MODULES` codebase |