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

Commit b4c6ffb

Browse files
committed
Merge branch 'feature/php-7.2-support'
Close #70 Close #69 Close #66 Close #56
2 parents 5079ece + 90fb179 commit b4c6ffb

File tree

6 files changed

+1996
-37
lines changed

6 files changed

+1996
-37
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ vendor/
1212
zf-mkdoc-theme/
1313

1414
clover.xml
15-
composer.lock
1615
coveralls-upload.json
1716
phpunit.xml

.travis.yml

Lines changed: 48 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,59 +2,77 @@ sudo: false
22

33
language: php
44

5-
branches:
6-
except:
7-
- /^release-.*$/
8-
- /^ghgfk-.*$/
9-
105
cache:
116
directories:
127
- $HOME/.composer/cache
13-
- $HOME/.local
14-
- zf-mkdoc-theme
158

169
env:
1710
global:
18-
- COMPOSER_ARGS="--no-interaction --prefer-source"
19-
- LEGACY_DEPS="phpunit/phpunit"
20-
- SITE_URL: https://zendframework.github.io/zend-eventmanager
21-
- GH_USER_NAME: "Matthew Weier O'Phinney"
22-
- GH_USER_EMAIL: [email protected]
23-
- GH_REF: github.com/zendframework/zend-eventmanager.git
24-
- secure: "q6mC+KhLKsPYD22R9RI7lLhQGF5dSQ0QttmaFSQf/wtIntruVIFoyWt8ObR3zFsZ4xxra8MZFV2AjbMM9vqB28aHZ1jV5kbCbhTfSbdv0GT4nwqIHh84Ui7gCykJBqyyboWf/ekOv87cbuTg3EbqJcgdBh6/oyRGIVVB3HQayJJTTUCz+TQ/M4mpvOE+61FGpu6WLv465R8aKRi0ZLjk6qMtAY616cnGlPBOoNopyQM2+VTGyLOFgwnCUae3l4MSc8zsWgA4FLwttsYOzoVXit1ZXcqAt+XCAxUMntT3esIKVdeNejqQ7ZhMdMJpbdXTgfOD9kPt4fbNrcyg12Zkl0F3lHUNMb22PWNXb7tZ3+E4pR8B+6GtKXLRleEl9sPUKhxZ0CgwQErqOE8Osnw+BeNjueosNzJvrpxdHLX1a1+1v4VZIcikK+btW6YS+YLjZJgd80LI/4vQByUehgfFRuJnmjkMp+p9NN+PphdYHcQLfe2VU+qif114cR2WAyaiJ47zXMu2+vqp9sR20M2CfKZXrihiSO+CdbhSmep3sWaCuLWZtpsMx7u3rKl1o5doGLmkYAc+OaCEw5mZ/nVxzkH2ldNNcCeV2+ENKj4zlKoVXy1MB0KTT2U2rJ4pO5WhYLORbgBNNKeuD8r5nl65Dhn3gaIPXvlica/jIqay+/U="
11+
- COMPOSER_ARGS="--no-interaction"
12+
- COVERAGE_DEPS="php-coveralls/php-coveralls"
2513

2614
matrix:
2715
include:
2816
- php: 5.6
2917
env:
18+
- DEPS=lowest
19+
- php: 5.6
20+
env:
21+
- DEPS=locked
22+
- LEGACY_DEPS="phpunit/phpunit"
3023
- TEST_COVERAGE=true
31-
- DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)"
32-
- PATH="$HOME/.local/bin:$PATH"
24+
- php: 5.6
25+
env:
26+
- DEPS=latest
27+
- php: 7
28+
env:
29+
- DEPS=lowest
3330
- php: 7
3431
env:
32+
- DEPS=locked
33+
- LEGACY_DEPS="phpunit/phpunit"
3534
- CS_CHECK=true
35+
- php: 7
36+
env:
37+
- DEPS=latest
3638
- php: 7.1
37-
38-
notifications:
39-
email: false
39+
env:
40+
- DEPS=lowest
41+
- php: 7.1
42+
env:
43+
- DEPS=locked
44+
- TEST_COVERAGE=true
45+
- php: 7.1
46+
env:
47+
- DEPS=latest
48+
- BENCHMARKS=true
49+
- php: 7.2
50+
env:
51+
- DEPS=lowest
52+
- php: 7.2
53+
env:
54+
- DEPS=locked
55+
- php: 7.2
56+
env:
57+
- DEPS=latest
4058

4159
before_install:
42-
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
43-
- composer self-update
44-
- if [[ $TEST_COVERAGE == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls ; fi
60+
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || true ; fi
4561

4662
install:
47-
- travis_retry composer install $COMPOSER_ARGS
48-
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
49-
- composer info -i
63+
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
64+
- if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update --with-dependencies $COMPOSER_ARGS $LEGACY_DEPS ; fi
65+
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
66+
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
67+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
68+
- stty cols 120 && composer show
5069

5170
script:
5271
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
5372
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
54-
- 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
55-
56-
after_success:
57-
- if [[ $DEPLOY_DOCS == "true" ]]; then echo "Preparing to build and deploy documentation" ; ./zf-mkdoc-theme/deploy.sh ; echo "Completed deploying documentation" ; fi
5873

5974
after_script:
60-
- if [[ $TEST_COVERAGE == 'true' ]]; then composer upload-coverage ; fi
75+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry php vendor/bin/php-coveralls -v ; fi
76+
77+
notifications:
78+
email: false

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ All notable changes to this project will be documented in this file, in reverse
66

77
### Added
88

9+
- [#66](https://github.com/zendframework/zend-eventmanager/pull/66) adds support for PHP 7.2.
10+
11+
### Changed
12+
913
- Nothing.
1014

1115
### Deprecated

composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"php": "^5.6 || ^7.0"
3636
},
3737
"require-dev": {
38-
"phpunit/PHPUnit": "^6.0.7 || ^5.7.14",
38+
"phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.2",
3939
"athletic/athletic": "^0.1",
4040
"zendframework/zend-stdlib": "^2.7.3 || ^3.0",
4141
"container-interop/container-interop": "^1.1.0",
@@ -53,7 +53,6 @@
5353
"cs-check": "phpcs",
5454
"cs-fix": "phpcbf",
5555
"test": "phpunit --colors=always",
56-
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml",
57-
"upload-coverage": "coveralls -v"
56+
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
5857
}
5958
}

0 commit comments

Comments
 (0)