Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andersundsehr/no-ci

Composer plugin for conditionally running scripts in no-ci or only in ci Contexts
https://github.com/andersundsehr/no-ci

Last synced: about 2 months ago
JSON representation

Composer plugin for conditionally running scripts in no-ci or only in ci Contexts

Awesome Lists containing this project

README

        

# @no-ci composer plugin

## install

``composer req andersundsehr/no-ci``

## what does it do

This plugin adds the possibility to add `@no-ci`/`@ci` to any composer script.
you can Add it in front of every possible composer script. [documentation](https://getcomposer.org/doc/articles/scripts.md#writing-custom-commands)

### Example composer.json
````json
{
"scripts": {
"test": [
"@no-ci @php vendor/bin/phpunit -c phpunit.xml",
"@ci @php vendor/bin/phpunit -c phpunit-ci.xml"
],
"other:examples": [
"@no-ci Composer\\Config::disableProcessTimeout",
"@no-ci @clearCache",
"@no-ci @composer install",
"@no-ci @php script.php",
"@no-ci @putenv COMPOSER=phpstan-composer.json",
"@no-ci ls -alh"
],
"clearCache": "rm -rf var"
}
}
````

# with ♥️ from anders und sehr GmbH

> If something did not work 😮
> or you appreciate this Extension 🥰 let us know.

> We are hiring https://www.andersundsehr.com/karriere/