Skip to content

Commit 44b103b

Browse files
committed
Add basic documentation
1 parent 79c47da commit 44b103b

File tree

4 files changed

+63
-3
lines changed

4 files changed

+63
-3
lines changed

.travis.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
language: php
2+
sudo: false
3+
4+
php:
5+
- 5.6
6+
- 7.0
7+
- hhvm
8+
9+
cache:
10+
directories:
11+
- vendor
12+
13+
before_install:
14+
- if [[ $TRAVIS_PHP_VERSION =~ ^7 ]]; then phpenv config-rm xdebug.ini; fi
15+
- composer self-update
16+
17+
install:
18+
- composer require --no-update --no-interaction "phpunit/phpunit:*" "squizlabs/php_codesniffer:*" "fabpot/php-cs-fixer:*"
19+
- travis_retry composer update --no-interaction --prefer-source
20+
- travis_retry wget https://scrutinizer-ci.com/ocular.phar
21+
22+
before_script:
23+
- if [[ $TRAVIS_PHP_VERSION =~ ^hhvm ]]; then echo 'xdebug.enable = On' >> /etc/hhvm/php.ini; fi
24+
25+
script:
26+
- >
27+
if [[ $TRAVIS_PHP_VERSION =~ ^7 ]]; then
28+
phpdbg -qrr vendor/phpunit/phpunit/phpunit --coverage-clover=coverage.clover --coverage-text;
29+
else
30+
vendor/bin/phpunit --coverage-clover=coverage.clover --coverage-text;
31+
fi
32+
- vendor/bin/phpcs --standard=PSR2 src tests
33+
- vendor/bin/php-cs-fixer fix --dry-run --diff
34+
35+
after_script:
36+
- >
37+
if [[ ! $TRAVIS_PHP_VERSION =~ ^hhvm ]]; then
38+
php ocular.phar code-coverage:upload --format=php-clover coverage.clover;
39+
fi

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Changelog #
2+
3+
## v1.0.0 (2016-11-24) ##
4+
5+
* Initial release

LICENSE

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Copyright (c) 2106 Riikka Kalliomäki
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of
4+
this software and associated documentation files (the "Software"), to deal in
5+
the Software without restriction, including without limitation the rights to
6+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
7+
the Software, and to permit persons to whom the Software is furnished to do so,
8+
subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

composer.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
}
1717
],
1818
"require": {
19-
"php": ">=5.6.0"
20-
},
21-
"require-dev": {
19+
"php": ">=5.6.0",
2220
"psr/http-message": "^1.0"
2321
},
2422
"autoload": {

0 commit comments

Comments
 (0)