Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup #113

Merged
merged 13 commits into from
Jan 12, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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