Skip to content

Commit 4f60aa1

Browse files
committed
Merge pull request #113 from henriquemoody/cleanup
Cleanup
2 parents 28292eb + 2a4da09 commit 4f60aa1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+842
-1857
lines changed

.gitignore

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,3 @@
1-
.foundation
2-
library/Zend/
3-
library/Symfony/
4-
.buildpath
5-
.project
6-
.DS_Store
7-
.settings/
8-
.foundation-tmp
9-
phar
10-
*.phar
11-
tests/reports
12-
pirum
13-
nbproject
14-
*.7z
15-
*.jar
16-
*.rar
17-
*.zip
18-
*.gz
19-
*.bzip
20-
*.xz
21-
*.lzma
22-
*.iso
23-
*.tar
24-
*.dmg
25-
*.xpi
26-
*.gem
27-
*.egg
28-
*.deb
29-
*.rpm
30-
*.tgz
311
composer.lock
2+
Makefile
323
vendor/
33-
Rest.kdev4

.scrutinizer.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
filter:
2+
excluded_paths:
3+
- bin/*
4+
- public/*
5+
- tests/*
6+
7+
checks:
8+
php:
9+
code_rating: true
10+
11+
tools:
12+
external_code_coverage: true
13+
php_analyzer: true
14+
php_changetracking: true
15+
php_code_sniffer:
16+
config:
17+
standard: "PSR2"
18+
php_cpd: true
19+
php_mess_detector: true
20+
php_pdepend: true
21+
sensiolabs_security_checker: true

.travis.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,32 @@
1-
# a Courtesy of Respect/Foundation
1+
sudo:
2+
false
23

3-
language: php
4-
5-
env: FOUNDATION_NO_WAIT=1
4+
language:
5+
php
66

77
php:
88
- 5.3
99
- 5.4
1010
- 5.5
11+
- 5.6
12+
- hhvm
13+
- hhvm-nightly
14+
15+
cache:
16+
directories:
17+
- vendor
1118

1219
before_script:
13-
- make composer-install-dev
14-
- phpenv rehash
20+
- composer install --dev --no-interaction --prefer-source
1521

1622
script:
17-
- make testdox
23+
- vendor/bin/phpunit --configuration phpunit.xml.dist --colors --coverage-clover=coverage.clover
24+
25+
after_script:
26+
- wget https://scrutinizer-ci.com/ocular.phar
27+
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
1828

19-
notifications:
20-
irc:
21-
channels:
22-
- "irc.freenode.org#php-respect"
23-
use_notice: true
29+
matrix:
30+
allow_failures:
31+
- php: hhvm
32+
- php: hhvm-nightly

CONTRIBUTING.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Contributing to Respect\Rest
2+
3+
Contributions to Respect\Rest are always welcome. You make our lives easier by
4+
sending us your contributions through GitHub pull requests.
5+
6+
Pull requests for bug fixes must be based on the current stable branch whereas
7+
pull requests for new features must be based on `master`.
8+
9+
Due to time constraints, we are not always able to respond as quickly as we
10+
would like. Please do not take delays personal and feel free to remind us here,
11+
on IRC, or on Gitter if you feel that we forgot to respond.
12+
13+
## Using Respect\Rest From a Git Checkout
14+
15+
The following commands can be used to perform the initial checkout of Respect\Rest:
16+
17+
```shell
18+
git clone git://github.com/Respect/Rest.git
19+
cd Rest
20+
```
21+
22+
Retrieve Respect\Rest's dependencies using [Composer](http://getcomposer.org/):
23+
24+
```shell
25+
composer install
26+
```
27+
28+
## Running Tests
29+
30+
After run `composer install` on the library's root directory you must run PHPUnit.
31+
32+
### Linux
33+
34+
You can test the project using the commands:
35+
```shell
36+
$ vendor/bin/phpunit
37+
```
38+
39+
### Windows
40+
41+
You can test the project using the commands:
42+
```shell
43+
> vendor\bin\phpunit
44+
```
45+
46+
No test should fail.
47+
48+
You can tweak the PHPUnit's settings by copying `phpunit.xml.dist` to `phpunit.xml`
49+
and changing it according to your needs.
50+
51+
## Standards
52+
53+
We are trying to follow the [PHP-FIG](http://www.php-fig.org)'s standards, so
54+
when you send us a pull request, be sure you are following them.
55+
56+
## Sending your code to us
57+
58+
Please see http://help.github.com/pull-requests/.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2009-2014, Alexandre Gomes Gaigalas.
1+
Copyright (c) 2009-2015, Alexandre Gomes Gaigalas.
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification,

0 commit comments

Comments
 (0)