Skip to content

Commit

Permalink
Namespace internal Composer scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelstolt committed Feb 3, 2018
1 parent 0039946 commit 74b4204
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Expand Up @@ -40,4 +40,4 @@ install:

test_script:
- cd %APPVEYOR_BUILD_FOLDER%
- composer test
- composer construct:test
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -30,6 +30,6 @@ before_script:

script:
- if [[ $LINT = true ]]; then
composer cs-lint;
composer construct:cs-lint;
fi
- composer test
- composer construct:test
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Expand Up @@ -3,7 +3,7 @@
Thanks for contributing to construct! Just follow these single guidelines:
- You must follow the PSR-2 coding standard. Please see [PSR-2](http://www.php-fig.org/psr/psr-2/) for more details. With these tweaks:
- Always use spaces!
- Ensure the coding standard compliance before committing or opening pull requests by running `composer cs-fix` or `composer cs-lint` in the root directory of this repository.
- Ensure the coding standard compliance before committing or opening pull requests by running `composer construct:cs-fix` or `composer construct:cs-lint` in the root directory of this repository.

- All features or bugfixes must have an associated issue for discussion. If you want to work on an issue that is already created, please leave a comment on it indicating that you are working on it.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -248,7 +248,7 @@ construct generate:interactive

## Running tests
``` bash
composer test
composer construct:test
```

## License
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Expand Up @@ -39,14 +39,14 @@
},
"bin": ["bin/construct"],
"scripts": {
"test": "phpunit",
"cs-fix": "php-cs-fixer fix . -vv || true",
"cs-lint": "php-cs-fixer fix --diff --stop-on-violation --verbose --dry-run"
"construct:test": "phpunit",
"construct:cs-fix": "php-cs-fixer fix . -vv || true",
"construct:cs-lint": "php-cs-fixer fix --diff --stop-on-violation --verbose --dry-run"
},
"scripts-descriptions": {
"test": "Runs all tests.",
"cs-fix": "Fixes existing coding standard violations.",
"cs-lint": "Checks for coding standard violations."
"construct:test": "Runs all tests.",
"construct:cs-fix": "Fixes existing coding standard violations.",
"construct:cs-lint": "Checks for coding standard violations."
},
"minimum-stability": "stable"
}

0 comments on commit 74b4204

Please sign in to comment.