Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Updating readme
  • Loading branch information
Andrew McLagan committed Jul 5, 2018
commit 4d4eff43030c6d13919f0caf4152550b2273c9e6
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ For bug reports, please [open an issue on GitHub](https://github.com/rollbar/rol

## Testing
Tests are in `tests`.
To run the tests: `composer test`
To fix code style issues: `composer fix`
* To run the tests: `composer test`
* To fix code style issues: `composer fix`

## Docker
Docker binaries are located in `./bin` and can be run by simply executing `bin/phpunit` for example.
To run tests: `bin/phpunit`
To run all supported versions: `bin/phpunit-versions`
To run composer : `bin/composer install` OR `bin/composer update`
* To run tests: `bin/phpunit`
* To run all supported versions: `bin/phpunit-versions`
* To run composer : `bin/composer install` OR `bin/composer update`
11 changes: 11 additions & 0 deletions bin/phpcs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -e

docker run -it --rm \
-e "TERM=xterm-256color" \
-v "$PWD":/usr/src \
-w /usr/src \
php:7.2-cli-alpine \
vendor/bin/phpcs --standard=PSR1,PSR2 src tests

2 changes: 1 addition & 1 deletion bin/phpunit
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ docker run -it --rm \
-v "$PWD":/usr/src \
-w /usr/src \
php:7.2-cli-alpine \
vendor/bin/phpunit "$@"
vendor/bin/phpunit --coverage-clover build/logs/clover.xml