Skip to content

Commit

Permalink
Merge pull request #236 from henriquemoody/cleanups
Browse files Browse the repository at this point in the history
Cleanups
  • Loading branch information
henriquemoody committed Jan 7, 2015
2 parents e1b10c8 + f568061 commit 018c3fe
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 1,714 deletions.
30 changes: 2 additions & 28 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,29 +1,3 @@
.foundation
library/Zend/
library/Symfony/
.buildpath
.project
.settings/
nbproject
tests/reports
*.phar
/library/.fr-6ayG1u/
/library/.fr-n9BajN/
*.7z
*.jar
*.rar
*.zip
*.gz
*.bzip
*.xz
*.lzma
*.iso
*.tar
*.dmg
*.xpi
*.gem
*.egg
*.deb
*.rpm
*.tgz
Makefile
phpunit.xml
vendor/
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ cache:

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

script:
- vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-clover=coverage.clover --testdox tests/
- vendor/bin/phpunit --configuration phpunit.xml.dist --colors --coverage-clover=coverage.clover

after_script:
- wget https://scrutinizer-ci.com/ocular.phar
Expand Down
19 changes: 17 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,23 @@ and will natively have support for chaining and everything else.

## Running Tests

Make sure you have PHPUnit installed. Instructions can be found on http://phpunit.de.
Then, go to the `tests` folder on your terminal and type `phpunit .`. No test should fail.
After run `composer install` on the library's root directory you must run PHPUnit.

### Linux

You can test the project using the commands:
```sh
$ vendor/bin/phpunit
```

### Windows

You can test the project using the commands:
```sh
$ vendor\bin\phpunit
```

No test should fail.

## Sending your code to us

Expand Down
942 changes: 0 additions & 942 deletions Makefile

This file was deleted.

38 changes: 10 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Respect\Validation
==================

[![Build Status](https://secure.travis-ci.org/Respect/Validation.png)](http://travis-ci.org/Respect/Validation)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Respect/Validation/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Respect/Validation/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/Respect/Validation/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/Respect/Validation/?branch=master)
[![Latest Stable Version](https://poser.pugx.org/respect/validation/v/stable.png)](https://packagist.org/packages/respect/validation)
[![Total Downloads](https://poser.pugx.org/respect/validation/downloads.png)](https://packagist.org/packages/respect/validation)
[![License](https://poser.pugx.org/respect/validation/license.png)](https://packagist.org/packages/respect/validation)
[![Build Status](https://img.shields.io/travis/Respect/Validation.svg?style=flat-square)](http://travis-ci.org/Respect/Validation)
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/Respect/Validation.svg?style=flat-square)](https://scrutinizer-ci.com/g/Respect/Validation/?branch=master)
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/Respect/Validation.svg?style=flat-square)](https://scrutinizer-ci.com/g/Respect/Validation/?branch=master)
[![Latest Stable Version](https://img.shields.io/packagist/v/respect/validation.svg?style=flat-square&label=stable)](https://packagist.org/packages/respect/validation)
[![Total Downloads](https://img.shields.io/packagist/dt/respect/validation.svg?style=flat-square)](https://packagist.org/packages/respect/validation)
[![License](https://img.shields.io/packagist/l/respect/validation.svg?style=flat-square)](https://packagist.org/packages/respect/validation)

[The most awesome validation engine ever created for PHP.](http://bit.ly/1a1oeQv)

Expand All @@ -17,29 +17,11 @@ Respect\Validation
Installation
------------

Packages available on [PEAR](http://respect.li/pear) and [Composer](http://packagist.org/packages/Respect/Validation). Autoloading is [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md) compatible.
The package is available on [Packagist](http://packagist.org/packages/respect/validation).
Autoloading is [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md) compatible.

Test
----

### Linux

You can test the project using the commands:
```sh
$ cd <project folder>
$ curl -sS https://getcomposer.org/installer | php
$ composer.phar install
$ vendor/bin/phpunit tests
```

### Windows

You can test the project using the commands:
```sh
$ cd <project folder>
$ curl -sS https://getcomposer.org/installer | php
$ composer.phar install
$ vendor\bin\phpunit tests
```shell
composer require respect/validation
```

Feature Guide
Expand Down
14 changes: 5 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Respect/Validation",
"name": "respect/validation",
"description": "The most awesome validation engine ever created for PHP",
"keywords": ["respect", "validation", "validator"],
"type": "library",
Expand All @@ -11,17 +11,13 @@
"homepage": "https://github.com/Respect/Validation/graphs/contributors"
}
],
"repositories": [{
"type": "composer",
"url": "https://packages.zendframework.com/"
}],
"require": {
"php": ">=5.3.0"
"php": ">=5.3.0"
},
"require-dev": {
"zendframework/zend-validator": "~2.0",
"symfony/validator": "~2.1",
"phpunit/phpunit": "~4.0"
"phpunit/phpunit": "~4.0",
"symfony/validator": "~2.6",
"zendframework/zend-validator": "~2.3"
},
"suggest": {
"ext-bcmath": "Arbitrary Precision Mathematics",
Expand Down
72 changes: 0 additions & 72 deletions package.ini

This file was deleted.

Loading

0 comments on commit 018c3fe

Please sign in to comment.