|
2 | 2 |
|
3 | 3 | [](https://gitter.im/syntaxerrors/Steam?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) |
4 | 4 |
|
5 | | -[](https://travis-ci.org/syntaxerrors/Steam) |
6 | | -[](https://scrutinizer-ci.com/g/syntaxerrors/Steam/?branch=master) |
| 5 | + |
| 6 | +[](https://codeclimate.com/github/syntaxerrors/Steam/maintainability) |
| 7 | +<a href="https://codeclimate.com/github/syntaxerrors/Steam/test_coverage"><img src="https://api.codeclimate.com/v1/badges/eb99d8de80e750fd4c27/test_coverage" /></a> |
7 | 8 | [](https://packagist.org/packages/syntax/steam-api) |
8 | 9 | [](https://packagist.org/packages/syntax/steam-api) |
9 | 10 | [](https://packagist.org/packages/syntax/steam-api) |
@@ -397,13 +398,25 @@ group| string or int | The ID or the name of the group. | Yes |
397 | 398 |
|
398 | 399 | ## Testing the Steam Package |
399 | 400 |
|
400 | | -**Install dependancies** |
401 | | -`docker run -it --rm -v $PWD:/opt/app -w /opt/app --network host --name php nicekiwi/php composer install` |
402 | | - |
403 | 401 | A Steam API key must be provided or most tests will fail. |
404 | 402 |
|
405 | 403 | **Run Tests** |
406 | | -`docker run -it --rm -v $PWD:/opt/app -w /opt/app --network host --name php -e apiKey='YOUR_STEAM_API_KEY' nicekiwi/php ./vendor/bin/phpunit` |
| 404 | +``` |
| 405 | +# Install dependancies |
| 406 | +docker-compose run php composer install |
| 407 | +
|
| 408 | +# Run tests (assumes apiKey is set in .env file) |
| 409 | +docker-compose run php composer test |
| 410 | +
|
| 411 | +# Or with the apiKey inline |
| 412 | +docker-compose run -e api=YOUR_STEAM_API_KEY php composer test |
| 413 | +
|
| 414 | +# With coverage |
| 415 | +docker-compose run php composer coverage |
| 416 | +
|
| 417 | +# Play around |
| 418 | +docker-compose run php bash |
| 419 | +``` |
407 | 420 |
|
408 | 421 | ## Contributors |
409 | 422 | - [Stygiansabyss](https://github.com/stygiansabyss) |
|
0 commit comments