Skip to content

Commit

Permalink
Merge pull request #113 from henriquemoody/cleanup
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
henriquemoody committed Jan 12, 2015
2 parents 28292eb + 2a4da09 commit 4f60aa1
Show file tree
Hide file tree
Showing 52 changed files with 842 additions and 1,857 deletions.
32 changes: 1 addition & 31 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,33 +1,3 @@
.foundation
library/Zend/
library/Symfony/
.buildpath
.project
.DS_Store
.settings/
.foundation-tmp
phar
*.phar
tests/reports
pirum
nbproject
*.7z
*.jar
*.rar
*.zip
*.gz
*.bzip
*.xz
*.lzma
*.iso
*.tar
*.dmg
*.xpi
*.gem
*.egg
*.deb
*.rpm
*.tgz
composer.lock
Makefile
vendor/
Rest.kdev4
21 changes: 21 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
filter:
excluded_paths:
- bin/*
- public/*
- tests/*

checks:
php:
code_rating: true

tools:
external_code_coverage: true
php_analyzer: true
php_changetracking: true
php_code_sniffer:
config:
standard: "PSR2"
php_cpd: true
php_mess_detector: true
php_pdepend: true
sensiolabs_security_checker: true
33 changes: 21 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
# a Courtesy of Respect/Foundation
sudo:
false

language: php

env: FOUNDATION_NO_WAIT=1
language:
php

php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
- hhvm-nightly

cache:
directories:
- vendor

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

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

after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover

notifications:
irc:
channels:
- "irc.freenode.org#php-respect"
use_notice: true
matrix:
allow_failures:
- php: hhvm
- php: hhvm-nightly
58 changes: 58 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Contributing to Respect\Rest

Contributions to Respect\Rest are always welcome. You make our lives easier by
sending us your contributions through GitHub pull requests.

Pull requests for bug fixes must be based on the current stable branch whereas
pull requests for new features must be based on `master`.

Due to time constraints, we are not always able to respond as quickly as we
would like. Please do not take delays personal and feel free to remind us here,
on IRC, or on Gitter if you feel that we forgot to respond.

## Using Respect\Rest From a Git Checkout

The following commands can be used to perform the initial checkout of Respect\Rest:

```shell
git clone git://github.com/Respect/Rest.git
cd Rest
```

Retrieve Respect\Rest's dependencies using [Composer](http://getcomposer.org/):

```shell
composer install
```

## Running Tests

After run `composer install` on the library's root directory you must run PHPUnit.

### Linux

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

### Windows

You can test the project using the commands:
```shell
> vendor\bin\phpunit
```

No test should fail.

You can tweak the PHPUnit's settings by copying `phpunit.xml.dist` to `phpunit.xml`
and changing it according to your needs.

## Standards

We are trying to follow the [PHP-FIG](http://www.php-fig.org)'s standards, so
when you send us a pull request, be sure you are following them.

## Sending your code to us

Please see http://help.github.com/pull-requests/.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2009-2014, Alexandre Gomes Gaigalas.
Copyright (c) 2009-2015, Alexandre Gomes Gaigalas.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
Expand Down
Loading

0 comments on commit 4f60aa1

Please sign in to comment.