dancryer / PHPCI

PHPCI is a free and open source continuous integration tool specifically designed for PHP.
BSD 2-Clause "Simplified" License
2.42k stars 441 forks source link

Add shell filter by active branch #1287

Closed valcriss closed 7 years ago

valcriss commented 7 years ago

Contribution Type: new feature

This pull request affects the following areas:

In raising this pull request, I confirm the following (please check boxes):

Detailed description of change:

Hello, I had to limit the execution of the shell plugin on a specific branch, I modified slightly the structure of the parameters of the plugin to have a series of commands per branch.

I do not know if you will find this feature interesting.

dancryer commented 7 years ago

This can already be achieved as follows:

branch-master:
    run-option: 'after'
    test:
        shell:
            - "echo 1"