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

Commit 66c3684

Browse files
committed
Merge branch 'feature/php-7.2-support' into develop
Forward port #70 Forward port #69 Forward port #66 Forward port #56 Conflicts: .travis.yml composer.json
2 parents 969821a + 90fb179 commit 66c3684

File tree

6 files changed

+2719
-38
lines changed

6 files changed

+2719
-38
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 & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,61 +2,78 @@ 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
3327
- php: 7
3428
env:
35-
- BENCHMARKS=true
29+
- DEPS=lowest
30+
- php: 7
31+
env:
32+
- DEPS=locked
33+
- LEGACY_DEPS="phpunit/phpunit"
3634
- CS_CHECK=true
35+
- php: 7
36+
env:
37+
- DEPS=latest
3738
- php: 7.1
38-
39-
notifications:
40-
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
4158

4259
before_install:
43-
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
44-
- composer self-update
45-
- 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
4661

4762
install:
48-
- travis_retry composer install $COMPOSER_ARGS
49-
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
50-
- 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
5169

5270
script:
5371
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
5472
- if [[ $BENCHMARKS == 'true' ]]; then vendor/bin/phpbench run --revs=2 --iterations=2 --report=aggregate ; fi
5573
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
56-
- 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
57-
58-
after_success:
59-
- if [[ $DEPLOY_DOCS == "true" ]]; then echo "Preparing to build and deploy documentation" ; ./zf-mkdoc-theme/deploy.sh ; echo "Completed deploying documentation" ; fi
6074

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

CHANGELOG.md

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

2525
### Added
2626

27+
- [#66](https://github.com/zendframework/zend-eventmanager/pull/66) adds support for PHP 7.2.
28+
29+
### Changed
30+
2731
- Nothing.
2832

2933
### Deprecated

composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
"php": "^5.6 || ^7.0"
3636
},
3737
"require-dev": {
38-
"phpunit/PHPUnit": "^6.0.7 || ^5.7.14",
3938
"phpbench/phpbench": "^0.13",
39+
"phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.2",
4040
"zendframework/zend-stdlib": "^2.7.3 || ^3.0",
4141
"container-interop/container-interop": "^1.1.0",
4242
"zendframework/zend-coding-standard": "~1.0.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)