Skip to content

Commit

Permalink
- support for DataTransfer 0.3
Browse files Browse the repository at this point in the history
- test on PHP 7.4 via Travis
  • Loading branch information
Arthur Mogliev committed Jan 19, 2020
1 parent ae8f59a commit d494db8
Show file tree
Hide file tree
Showing 17 changed files with 6,883 additions and 222 deletions.
2 changes: 1 addition & 1 deletion .coveralls.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
coverage_clover: spec_output/coverage.xml
coverage_clover: spec_output/phpspec.coverage.xml
json_path: spec_output/coveralls-upload.json
10 changes: 10 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/docs export-ignore
/spec export-ignore
.coveralls.yml export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.travis.yml export-ignore
composer.lock export-ignore
composer.lock.7.1 export-ignore
mkdocs.yml export-ignore
phpspec.yml export-ignore
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
composer.phar
/vendor/
/.idea/
/site/
/test_output/

# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
Expand Down
17 changes: 7 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,24 @@ php:
- '7.1'
- '7.2'
- '7.3'
- '7.4'

before_install:
- phpenv config-rm xdebug.ini

install:
- composer install --no-interaction --no-progress --no-suggest --classmap-authoritative
- |
if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then
curl -s -L https://github.com/php-coveralls/php-coveralls/releases/download/v2.1.0/php-coveralls.phar > coveralls.phar
if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1" ]]; then
cp ./composer.lock.7.1 ./composer.lock
fi
- composer install --no-interaction --no-progress --no-suggest --classmap-authoritative

script:
- |
if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then
phpdbg -qrr vendor/phpspec/phpspec/bin/phpspec run -c phpspec-coverage.yml
else
phpdbg -qrr vendor/phpspec/phpspec/bin/phpspec run
fi
- phpdbg -qrr vendor/phpspec/phpspec/bin/phpspec run

after_success:
- |
if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.2" ]]; then
if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.4" ]]; then
curl -s -L https://github.com/php-coveralls/php-coveralls/releases/download/v2.2.0/php-coveralls.phar > coveralls.phar
php coveralls.phar -v
fi
11 changes: 5 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"name": "Arthur Mogliev"
}
],
"version": "0.4",
"version": "0.5",
"require": {
"php": "^7.1",
"zendframework/zend-expressive": "^3.2",
Expand All @@ -32,14 +32,13 @@
},
"require-dev": {
"zendframework/zend-diactoros": "^2.1",
"doctrine/annotations": "^1.6",
"doctrine/annotations": "^1.8",
"nikic/fast-route": "^1.3",
"zendframework/zend-cache": "^2.8",
"zendframework/zend-cache": "^2.9",
"articus/data-transfer": "*",
"ext-json": "*",
"phpspec/phpspec": "^5.0",
"phpspec/prophecy": "*",
"dragonrun1/phpspec-code-coverage": "^4.2.3"
"phpspec/phpspec": "^5.1|^6.1",
"friends-of-phpspec/phpspec-code-coverage": "*"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit d494db8

Please sign in to comment.