https://github.com/holyshared/robo-peridot
Robo task for peridot-php
https://github.com/holyshared/robo-peridot
Last synced: over 1 year ago
JSON representation
Robo task for peridot-php
- Host: GitHub
- URL: https://github.com/holyshared/robo-peridot
- Owner: holyshared
- License: mit
- Created: 2015-01-01T11:36:57.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-12-05T06:50:45.000Z (over 10 years ago)
- Last Synced: 2025-02-17T13:45:19.025Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 21.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
robo-peridot
============
**robo-peridot** is a library to run the test of peridot for robo.
Installation of [Robo PHP Task Runner](http://robo.li/) will be mandatory to use it.
[](https://packagist.org/packages/holyshared/robo-peridot)
[](https://packagist.org/packages/holyshared/robo-peridot)
[](https://travis-ci.org/holyshared/robo-peridot)
[](http://hhvm.h4cc.de/package/holyshared/robo-peridot)
[](https://coveralls.io/r/holyshared/robo-peridot?branch=master)
[](https://www.versioneye.com/user/projects/54c383e66c003567fd000457)
Basic Usage
----------------------------
To use a task, you must write code such as the following.
Options that can be used **-grep**, **-no-colors**, **-reporter**, **--bail**, **--configuration**.
```php
class RoboFile extends Tasks
{
use \holyshared\peridot\robo\loadTasks;
public function coverallsUpload()
{
$result = $this->taskPeridot()
->bail()
->directoryPath('spec')
->run();
return $result;
}
}
```
Specify more than one file
----------------------------
If you specify more than one file, you can use the **filePaths** method.
The following code is equivalent to `peridot spec/foo.php spec/bar.php`.
```php
class RoboFile extends Tasks
{
use \holyshared\peridot\robo\loadTasks;
public function coverallsUpload()
{
$result = $this->taskPeridot()
->filePaths([
'spec/foo.php',
'spec/bar.php'
])
->run();
return $result;
}
}
```
Testing robo-peridot
----------------------------
Please try the following command.
composer install
composer test