https://github.com/decipher/dcir
Drupal common CI Runner
https://github.com/decipher/dcir
Last synced: about 2 months ago
JSON representation
Drupal common CI Runner
- Host: GitHub
- URL: https://github.com/decipher/dcir
- Owner: Decipher
- Created: 2016-06-15T22:29:40.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:29:03.000Z (over 2 years ago)
- Last Synced: 2023-12-15T03:52:15.004Z (over 2 years ago)
- Language: Shell
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Drupal common CI Runner
Drupal common CI Runner (DCIR) is a Docker based tool for executing
automated testing of Drupal modules on common CI providers as well
as locally.
## Running DCIR locally
### Requirement(s):
- [Docker](https://www.docker.com/)
### Steps:
Run the following command from the module directory you wish to test:
```
docker run --rm -it -v $(pwd):/dcir deciphered/dcir:latest
```
## Running DCIR via Continuous Integration (CI)
Each CI runner has it's own configuration format, simply place the
relevant file below into your project:
### CircleCI
**circle.yml**
```
machine:
services:
- docker
test:
override:
- docker run --rm -v $(pwd):/dcir -it deciphered/dcir:latest
```
### Travis CI
**.travis.yml**
```
sudo: required
language: php
services:
- docker
script:
- docker run -v $(pwd):/dcir -it deciphered/dcir-5.6:develop
```
## Advanced configuration
DCIR doesn't requires zero configuration out of the box, it uses
auto-magic detection to determine the relevant configuration for the
project.
In the case the discovery this doesn't work as required, a configuration
file can be added to the project.
**.dcir.yml**
```
drupal:
# The Drupal core version: 7, 8 (default).
#core: 8
# The Drupal project being tested.
project: "PROJECT_MACHINE_NAME"
# The Drupal project type; module (default).
#project_type: "module"
# The simpletest group to be run.
simpletest:
group: "SIMPLETEST_GROUP_NAME"
```
Note: Be sure to replace the relevant placeholders and uncomment out the
configuration as required.