Skip to content

Introduce "composer test" script #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
composer.lock
vendor/
bin/
docs/build
6 changes: 1 addition & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,4 @@ install:
- if [ "$DEPENDENCIES" == "lowest" ]; then composer update --prefer-lowest; fi;

script:
- bin/behat -f progress
- bin/phpunit
- bin/phpspec run -f progress
- bin/phpcs -p --colors --standard=PSR2 src/ features/bootstrap/
- bin/phpcs -p --colors --standard=vendor/jakubzapletal/php_codesniffer-rules/psr2-without-camel-case-method-name.xml spec/ integrations/
- composer test
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ $ vendor/bin/phpzone db
This will compose a proper Docker Compose command `docker-compose -f docker-compose.yml -p myproject up` and
execute it.

## Development

To run tests, run:

```bash
$ composer test
```

## Documentation

For more details visit [PhpZone Docker documentation].
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
}
},

"config": {
"bin-dir": "bin/"
"scripts": {
"test": "phpzone tests"
},

"conflict": {
Expand Down
10 changes: 5 additions & 5 deletions phpzone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ extensions:
tests:
description: Run all tests
script:
- bin/behat -f progress
- bin/phpunit
- bin/phpspec run -f progress
- bin/phpcs -p --colors --standard=PSR2 src/ features/bootstrap/
- bin/phpcs -p --colors --standard=vendor/jakubzapletal/php_codesniffer-rules/psr2-without-camel-case-method-name.xml spec/ integrations/
- behat -f progress
- phpunit
- phpspec run -f progress
- phpcs -p --colors --standard=PSR2 src/ features/bootstrap/
- phpcs -p --colors --standard=vendor/jakubzapletal/php_codesniffer-rules/psr2-without-camel-case-method-name.xml spec/ integrations/