Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/qa' into develop
Browse files Browse the repository at this point in the history
Forward port #25
Forward port #30
Forward port #31
Forward port #32
Forward port #33
Forward port #34
Forward port #35
Forward port #36
Forward port #37
Forward port #41
Forward port #43
Forward port #54
Forward port #55
Forward port #56
Forward port #57
Forward port #58
  • Loading branch information
weierophinney committed May 17, 2017
2 parents 09dab83 + 692361d commit f15f8d8
Show file tree
Hide file tree
Showing 55 changed files with 1,094 additions and 506 deletions.
1 change: 0 additions & 1 deletion .coveralls.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
coverage_clover: clover.xml
json_path: coveralls-upload.json
src_dir: src
54 changes: 31 additions & 23 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,37 +15,30 @@ cache:

env:
global:
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
- COMPOSER_ARGS="--no-interaction"
- COVERAGE_DEPS="satooshi/php-coveralls"
- LEGACY_DEPS="phpunit/phpunit"
- SITE_URL=https://zendframework.github.io/zend-hydrator
- GH_USER_NAME="Matthew Weier O'Phinney"
- [email protected]
- GH_REF=github.com/zendframework/zend-hydrator.git
- secure: "xMnwSntQA+rIsQIIklwziEROWMlF9vsq7L1BOJwnNMFmfImnn/2RxHdqqtQ6q7npsHioUqn23YZyFTLCGZiM7SLcBQndiW1Qmgz8VE2hk1ur+d2PIewu7v3aTgOOB+igK0Re43ZQKX/Vl2C92IlBmilyWzFBqE81kdw0NmxHq8QqpNAgnTkYaye4MOiW+giLtdkCSHHYn6/zmOgc0A630X7YKy7Ru+bYGGXXVb2jzq7mdapE0XZpgjFkYiwwOgA8AQLwWJF87QwaGrdeej1PbAInQDoeMWf9o2C5Ezl57+IWJfR6yTs29zFDUXo6hcWyQ4Rurpgei0Jt30LDZohZ4xY0LZkJ0wochprh5riXmQ2cM/i/RvQjQ2hgJOcDHyUPYfaoyD4CRgA1KvkjD7dRypQ03cPyjHXluZat+ZQkFMa6W5K/M2brGLRhW3echko3/1riMEzFshhqMO7RtZ9GeHg8fNxlgJFZI6R8KvIE+pM7OiZUdPYlfqOSZKr2kxhF2mJQ+a7I3EguLc2cgvu4c8IL34dOrmInhsj5kkIapLpiEIyN0G8rV6oI/nHXYBDgrEckjozjAkdOkInf/TowRNODQmrR7eUeBJCLPbRHFcY5aE4cGGGl7J1KM6rx2vV9Boc3KTxY0+cC9JegR8X7UaqGLqTSJ7k5FyapoxfYSJA="

matrix:
fast_finish: true
include:
- php: 5.5
env:
- DEPS=lowest
- php: 5.5
env:
- DEPS=locked
- DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)"
- PATH="$HOME/.local/bin:$PATH"
- php: 5.5
env:
- DEPS=latest
- php: 5.6
env:
- DEPS=lowest
- php: 5.6
env:
- DEPS=locked
- TEST_COVERAGE=true
- DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)"
- PATH="$HOME/.local/bin:$PATH"
- php: 5.6
env:
- DEPS=latest
- TEST_COVERAGE=true
- php: 7
env:
- DEPS=lowest
Expand All @@ -56,6 +49,15 @@ matrix:
- php: 7
env:
- DEPS=latest
- php: 7.1
env:
- DEPS=lowest
- php: 7.1
env:
- DEPS=locked
- php: 7.1
env:
- DEPS=latest
- php: hhvm
env:
- DEPS=lowest
Expand All @@ -68,29 +70,35 @@ matrix:
allow_failures:
- php: hhvm

notifications:
irc: "irc.freenode.org#zftalk.dev"
email: false

before_install:
- travis_retry composer self-update
- if [[ $TRAVIS_PHP_VERSION != "hhvm" && $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini ; fi
- composer validate

install:
- travis_retry composer install $COMPOSER_ARGS
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --no-update --dev $COMPOSER_ARGS satooshi/php-coveralls ; fi
- travis_retry composer install $COMPOSER_ARGS
- composer show --installed
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
- stty cols 120
- COLUMNS=120 composer show

script:
- if [[ $TEST_COVERAGE == 'true' ]]; then ./vendor/bin/phpunit --coverage-clover clover.xml ; fi
- if [[ $TEST_COVERAGE != 'true' ]]; then ./vendor/bin/phpunit ; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
- if [[ $CHECK_CS == 'true' ]]; then ./vendor/bin/phpcs ; fi
- if [[ $DEPLOY_DOCS == "true" && "$TRAVIS_TEST_RESULT" == "0" ]]; then wget -O theme-installer.sh "https://raw.githubusercontent.com/zendframework/zf-mkdoc-theme/master/theme-installer.sh" ; chmod 755 theme-installer.sh ; ./theme-installer.sh ; fi

after_success:
- if [[ $DEPLOY_DOCS == "true" ]]; then echo "Preparing to build and deploy documentation" ; ./zf-mkdoc-theme/deploy.sh ; echo "Completed deploying documentation" ; fi

after_script:
- if [[ $TEST_COVERAGE == 'true' ]]; then ./vendor/bin/coveralls ; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then composer upload-coverage ; fi

notifications:
email: false
slack:
rooms:
- secure: "0ftJmJvsmTRZFIT9TqVoiueNkyP8ntoE64wbYhn0+MFkifiLo8X+xXjCY7oF3uIzLcp8MIXEe4jXLJlMkceqB3d0adjbNWgxLW5aVL5sStUq+9hQRIM7wJsOnGnurKxx9Cqb/7oXom+WylY1dkN8F9ImhfrcC+HcQsFeyrbfvG8YkodEpFNo8rK84q0IjqxayLLdZvTlTQgmhozNnkfhN/zEboHW5tVXYWLyB71ny8SVl6JPs+xTfkQIT3OfOaYSElRO00vC00TrZ4aozwjmtZ37MvauAgmYgH5GiljUIzhoPxS6V65RSHucVK9IdMdsCOF5LlGqPPGe3i4VhPsbYZcDXwl9M7ac3/fy8QOoh5nCodtqeeGv1DQO+zEObMGws/U2J7l2apGjx7lYNXhcDFkS8IHhEF1bQKAnXTtt8f5FmtQ41ZWeEW98Sc5qrORRQTbv33jD+JzgweLGnK+7mQdwuDbUoWhOVb1lLWQeuEyjhsXaUu8mH8jRvlgLbLWc8cuncJMnwUr0iw4g1qFY4RxPvKgGbp4CwTgsk5xKrg9aOEWQyjzM8bP5lz2OnPentr2PjQKPxqiYrgbYo48kTrXYgXrZjvXYP4KsIcJQQ/q35c2/+kr2x193GqOv3jLyMiUNxgUqFZD7h9xZ8FWgl9BSkRkPpDrS9OskTFIvcns="
on_success: change
on_failure: always
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ standards checks, and provides configuration for our selected checks.
To run checks only:

```console
$ ./vendor/bin/phpcs
$ composer cs-check
```

`phpcs` also provides a tool that can automatically fix many CS issues,
`phpcbf`:

```console
$ ./vendor/bin/phpcbf
$ composer cs-fix
```

If you allow `phpcbf` to fix CS issues, please re-run the tests to ensure
Expand Down
17 changes: 14 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
},
"require": {
"php": "^5.5 || ^7.0",
"php": "^7.0 || ^5.6",
"zendframework/zend-stdlib": "^3.0"
},
"require-dev": {
Expand All @@ -22,8 +22,8 @@
"zendframework/zend-serializer": "^2.6.1",
"zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3",
"zendframework/zend-filter": "^2.6",
"phpunit/phpunit": "^4.5",
"squizlabs/php_codesniffer": "^2.3.1"
"phpunit/phpunit": "^6.0.10 || ^5.7.17",
"zendframework/zend-coding-standard": "~1.0.0"
},
"suggest": {
"zendframework/zend-eventmanager": "^2.6.2 || ^3.0, to support aggregate hydrator usage",
Expand All @@ -49,5 +49,16 @@
"psr-4": {
"ZendTest\\Hydrator\\": "test/"
}
},
"scripts": {
"check": [
"@cs-check",
"@test"
],
"cs-check": "phpcs",
"cs-fix": "phpcbf",
"test": "phpunit --colors=always",
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml",
"upload-coverage": "coveralls -v"
}
}
Loading

0 comments on commit f15f8d8

Please sign in to comment.