Skip to content

Commit 14c629f

Browse files
committed
Merge pull request #21 from php-http/package_updates
Update package files
2 parents 8e3a96e + 1dc2ac1 commit 14c629f

File tree

12 files changed

+101
-142
lines changed

12 files changed

+101
-142
lines changed

.editorconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,3 @@ indent_size = 4
77
indent_style = space
88
insert_final_newline = true
99
trim_trailing_whitespace = true
10-
11-
# we diverge from the yml 2 spaces convention of php-http in favor of the symfony code style.

.gitattributes

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
spec/ export-ignore
2+
Tests/ export-ignore
13
.editorconfig export-ignore
24
.gitattributes export-ignore
35
.gitignore export-ignore
6+
.php_cs export-ignore
47
.scrutinizer.yml export-ignore
8+
.styleci.yml export-ignore
59
.travis.yml export-ignore
610
CONTRIBUTING.md export-ignore
7-
Tests/ export-ignore
11+
phpspec.yml.ci export-ignore
12+
phpspec.yml.dist export-ignore
13+
phpunit.xml.dist export-ignore

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
.puli/
2+
build/
13
vendor/
24
composer.lock
5+
phpspec.yml
6+
phpunit.xml

.php_cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
/*
4+
* In order to make it work, fabpot/php-cs-fixer and sllh/php-cs-fixer-styleci-bridge must be installed globally
5+
* with composer.
6+
*
7+
* @link https://github.com/Soullivaneuh/php-cs-fixer-styleci-bridge
8+
* @link https://github.com/FriendsOfPHP/PHP-CS-Fixer
9+
*/
10+
11+
use SLLH\StyleCIBridge\ConfigBridge;
12+
13+
return ConfigBridge::create();

.scrutinizer.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
filter:
2-
exclude_paths: [vendor/*, Tests/*]
2+
paths: [src/*]
33
checks:
4-
php:
5-
code_rating: true
6-
duplication: true
4+
php:
5+
code_rating: true
6+
duplication: true
77
tools:
8-
external_code_coverage: true
9-
php_code_sniffer:
10-
config:
11-
standard: "PSR2"
8+
external_code_coverage: true

.styleci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
preset: symfony
2+
3+
finder:
4+
exclude:
5+
- "spec"
6+
- "Tests"
7+
- "Resources"
8+
path:
9+
- "./"
10+
11+
enabled:
12+
- short_array_syntax

.travis.yml

Lines changed: 33 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,48 @@
11
language: php
22

3+
sudo: false
4+
5+
cache:
6+
directories:
7+
- $HOME/.composer/cache
8+
39
php:
4-
- 5.5
5-
- 5.6
6-
- 7.0
7-
- hhvm
10+
- 5.5
11+
- 5.6
12+
- 7.0
13+
- hhvm
814

915
env:
10-
global:
11-
- TEST_COMMAND="composer test"
12-
matrix:
13-
- SYMFONY_VERSION=3.0.*
14-
- SYMFONY_VERSION=2.8.*
15-
- SYMFONY_VERSION=2.7.*
16+
global:
17+
- TEST_COMMAND="composer test"
18+
matrix:
19+
- SYMFONY_VERSION=3.0.*
20+
- SYMFONY_VERSION=2.8.*
21+
- SYMFONY_VERSION=2.7.*
22+
23+
branches:
24+
except:
25+
- /^analysis-.*$/
1626

1727
matrix:
18-
fast_finish: true
19-
allow_failures:
20-
- php: hhvm
21-
- env: SYMFONY_VERSION=3.0.*
22-
- php: 5.5
23-
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" && COVERAGE=true && TEST_COMMAND="composer test-ci" && SYMFONY_VERSION=2.7.*
28+
fast_finish: true
29+
allow_failures:
30+
- php: hhvm
31+
- env: SYMFONY_VERSION=3.0.*
32+
- php: 5.5
33+
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" COVERAGE=true TEST_COMMAND="composer test-ci" SYMFONY_VERSION=2.7.*
2434

2535
before_install:
26-
- travis_retry composer self-update
27-
- wget https://github.com/puli/cli/releases/download/1.0.0-beta9/puli.phar && chmod +x puli.phar
36+
- travis_retry composer self-update
37+
- wget https://github.com/puli/cli/releases/download/1.0.0-beta9/puli.phar && chmod +x puli.phar
2838

2939
install:
30-
- composer require symfony/symfony:${SYMFONY_VERSION} --no-update
31-
- travis_retry composer update ${COMPOSER_FLAGS} --prefer-source --no-interaction
40+
- composer require symfony/symfony:${SYMFONY_VERSION} --no-update
41+
- travis_retry composer update ${COMPOSER_FLAGS} --prefer-source --no-interaction
3242

3343
script:
34-
- $TEST_COMMAND
44+
- $TEST_COMMAND
3545

3646
after_success:
37-
- if [[ "$COVERAGE" = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
38-
- if [[ "$COVERAGE" = true ]]; then php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml; fi
47+
- if [[ "$COVERAGE" = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
48+
- if [[ "$COVERAGE" = true ]]; then php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml; fi

CONTRIBUTING

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Please see http://docs.php-http.org/en/latest/development/contributing.html

CONTRIBUTING.md

Lines changed: 0 additions & 85 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2015 PHP HTTP Team <[email protected]>
1+
Copyright (c) 2015-2016 PHP HTTP Team <[email protected]>
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)