Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/andersundsehr/no-ci
- Owner: andersundsehr
- License: gpl-2.0
- Created: 2022-12-13T17:54:06.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-24T19:43:19.000Z (almost 2 years ago)
- Last Synced: 2024-04-24T21:02:06.347Z (8 months ago)
- Language: PHP
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/