Skip to content

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

License

Notifications You must be signed in to change notification settings

andersundsehr/no-ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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

Example composer.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/

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages