Code Monkey home page Code Monkey logo

rules's Introduction

Rules for Drupal 8

Build Status

The Rules module allows site administrators to define conditionally executed actions based on occurring events (ECA-rules).

Project homepage: http://drupal.org/project/rules

Contributing

For some time development will happen on github and will be using the pull request model: in case you are not familiar with that, please take a few minutes to read the github article about that topic.

There are a few conventions that should be followed when contributing:

  • Always create an issue in the drupal.org Rules issue queue for every pull request you are working on;
  • Always cross-reference the Issue in the Pull Request and the Pull Request in the Issue;
  • Always create a new branch for every pull request: its name should contain a brief summary of the ticket and its issue id, e.g readme-2276369;
  • Try to keep the history of your pull request as clean as possible by squashing your commits: you can look at the Symfony documentation or at the Git book for more information on how to do that.

Setting up the environment

LAMP

The very first step for starting contributing to Rules is to setup a classic "LAMP" environment: that's a bit out of the scope of this document, so please take a look at Drupal Installation Guide and especially at its System requirements section.

### Drupal 8

Once you've got your system ready to host Drupal 8, the next step is to go and clone its repository in the directory where your web server will expect it to be by using the following command:

git clone --branch 8.x http://git.drupal.org/project/drupal.git

Please look at the Drupal Git Instructions for more information about how to clone Drupal.

Once you finished cloning Drupal, set up a database for it and proceed with the installation: after it's completed, the only thing's missing is the Rules module.

Rules

NOTE: you will need a working github account for contributing to Rules.

In order to start working on Rules, you have to visit its module page on github and click the Fork button.

Forking Rules repository

That will create a copy of the Rules repository on your github account: at this point you're ready to clone it on your working environment under the modules/ directory by using the following command (minding to replace YOURUSER with the name of your github user):

git clone [email protected]:YOURUSER/rules.git

Drupal 8 modules page

The only thing left to do now is to head to the module page clicking on the "Extend" button in the top menu and enable Rules.

Drupal 8 modules page

Executing the automated tests

This module comes with PHPUnit and Simpletest tests. You need a working Drupal 8 installation and a checkout of the Rules module in the modules folder.

PHPUnit:

$ cd /path/to/drupal-8/core
$ ./vendor/bin/phpunit ../modules/rules

Simpletest using drush:

$ drush test-run 'Rules, Rules conditions'

You can also execute the test cases from the web interface at /admin/config/development/testing.

rules's People

Contributors

klausi avatar fubhy avatar rinasek avatar paranojik avatar omissis avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.