Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
k-holy committed Nov 26, 2013
2 parents 99c1ddc + cd3a7ad commit b974e6f
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
src_dir: .
coverage_clover: build/logs/clover.xml
json_path: build/logs/coveralls-upload.json
exclude_no_stmt: true
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build/*
vendor
composer.lock
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ php:
- 5.5

before_script:
- composer install --dev
- composer install --dev --no-interaction --prefer-source

script:
- phpunit --coverage-text
- mkdir -p build/logs
- phpunit -c phpunit.xml

after_script:
- php vendor/bin/coveralls -v -c .coveralls.yml
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![Latest Stable Version](https://poser.pugx.org/volcanus/validation/v/stable.png)](https://packagist.org/packages/volcanus/validation)
[![Build Status](https://travis-ci.org/k-holy/volcanus-validation.png?branch=master)](https://travis-ci.org/k-holy/volcanus-validation)
[![Coverage Status](https://coveralls.io/repos/k-holy/volcanus-validation/badge.png?branch=master)](https://coveralls.io/r/k-holy/volcanus-validation?branch=master)

あるオブジェクトのプロパティまたは配列の値に対して、型や文字数、値の大小などの妥当性を検証するためのライブラリです。
ライブラリ全体としてはまだ作成途中ですが、検証処理自体は独立したクラス(Checker)として実装しており、それなりに稼働実績があります。
Expand Down
15 changes: 9 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
{
"name": "volcanus/validation",
"homepage": "https://github.com/k-holy/Volcanus_Validation",
"type": "library",
"description": "validation library",
"keywords": ["validation"],
"homepage": "https://github.com/k-holy/Volcanus_Validation",
"version": "0.2.3",
"version": "0.2.4",
"license": "MIT",
"authors": [
{
"name": "k-holy",
"email": "k.holy74@gmail.com"
}
],
"autoload": {
"psr-0": { "Volcanus\\Validation": "." }
},
"target-dir": "Volcanus/Validation",
"require": {
"php": ">=5.3.3"
},
"autoload": {
"psr-0": { "Volcanus\\Validation": "" }
},
"target-dir": "Volcanus/Validation"
"require-dev": {
"satooshi/php-coveralls": "dev-master"
}
}
15 changes: 14 additions & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,20 @@
>
<testsuites>
<testsuite name="Volcanus_Validation">
<directory suffix="Test.php">Tests</directory>
<directory suffix="Test.php">./Tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory>.</directory>
<exclude>
<directory>./Tests</directory>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
<logging>
<log type="coverage-text" target="php://stdout" showUncoveredFiles="true"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
</phpunit>
4 changes: 2 additions & 2 deletions testrunner.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
general:
framework: phpunit
test_targets:
recursive:
recursive: true
resources:
- Tests
autotest:
enabled: false
watch_dirs:
- .
notify:
notify: true

phpunit:
config: phpunit.xml

0 comments on commit b974e6f

Please sign in to comment.