-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from abacaphiliac/travis-and-readme
add travis config and readme
- Loading branch information
Showing
6 changed files
with
110 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
language: php | ||
php: | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
- hhvm | ||
env: | ||
- COMPOSER_OPTS="" | ||
- COMPOSER_OPTS="--prefer-lowest" | ||
matrix: | ||
allow_failures: | ||
- php: hhvm | ||
fast_finish: true | ||
before_script: | ||
- composer self-update | ||
- composer update --no-interaction | ||
script: | ||
- vendor/bin/phing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# klever/tutor | ||
Easily test accessor methods on your models by providing a spec in your test case. | ||
|
||
# Installation | ||
```bash | ||
composer require --dev klever/tutor | ||
``` | ||
|
||
# Usage | ||
Extend `\Klever\Tutor\AccessMethod\AbstractTestCase` and provide a spec for your model. | ||
|
||
# Example | ||
[`\Klever\TutorTest\AccessMethod\AbstractTestCaseIntegrationTest`](test/TutorTest/AccessMethod/AbstractTestCaseIntegrationTest.php) | ||
|
||
# Dependencies | ||
See [composer.json](composer.json). | ||
|
||
## Contributing | ||
```bash | ||
git clone [email protected]:tklever/tutor.git && cd tutor | ||
composer update && vendor/bin/phing | ||
``` | ||
|
||
This library attempts to comply with [PSR-1][], [PSR-2][], and [PSR-4][]. If | ||
you notice compliance oversights, please send a patch via pull request. | ||
|
||
[PSR-1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md | ||
[PSR-2]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md | ||
[PSR-4]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<project name="klever/tutor" default="develop" basedir="."> | ||
|
||
<target name="develop"> | ||
<phingcall target="lint"/> | ||
<phingcall target="tests"/> | ||
</target> | ||
|
||
<target name="lint"> | ||
<phingcall target="php-lint"/> | ||
<phingcall target="phpcs"/> | ||
</target> | ||
|
||
<target name="php-lint"> | ||
<exec command="vendor/bin/parallel-lint src test" | ||
passthru="true" | ||
output="/dev/stdout" | ||
error="/dev/stdout" | ||
checkreturn="true"/> | ||
</target> | ||
|
||
<target name="phpcs"> | ||
<exec command="vendor/bin/phpcs --standard=PSR2 --colors -p src/ test/" | ||
passthru="true" | ||
output="/dev/stdout" | ||
error="/dev/stdout" | ||
checkreturn="true"/> | ||
</target> | ||
|
||
<target name="phpcbf"> | ||
<exec command="vendor/bin/phpcbf --standard=PSR2 --colors -p src/ test/" | ||
passthru="true" | ||
output="/dev/stdout" | ||
error="/dev/stdout" | ||
checkreturn="true"/> | ||
</target> | ||
|
||
<target name="tests"> | ||
<phingcall target="unit-tests"/> | ||
<phingcall target="mutation-tests"/> | ||
</target> | ||
|
||
<target name="unit-tests"> | ||
<exec command="vendor/bin/phpunit --coverage-text" | ||
passthru="true" | ||
output="/dev/stdout" | ||
error="/dev/stdout" | ||
checkreturn="true"/> | ||
</target> | ||
|
||
<target name="mutation-tests"> | ||
<exec command="vendor/bin/humbug" | ||
passthru="true" | ||
output="/dev/stdout" | ||
error="/dev/stdout" | ||
checkreturn="true"/> | ||
</target> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters