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

Commit b9cecc6

Browse files
committed
Merge pull request #66 from snapshotpl/php72
Impove testing and add php 7.2 support Conflicts: .travis.yml
2 parents 3b26cf1 + c7f7b2a commit b9cecc6

File tree

2 files changed

+12
-31
lines changed

2 files changed

+12
-31
lines changed

.travis.yml

Lines changed: 11 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,14 @@ 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:
1811
- COMPOSER_ARGS="--no-interaction"
1912
- COVERAGE_DEPS="satooshi/php-coveralls"
20-
- LEGACY_DEPS="phpunit/phpunit"
21-
- SITE_URL: https://zendframework.github.io/zend-eventmanager
22-
- GH_USER_NAME: "Matthew Weier O'Phinney"
23-
- GH_USER_EMAIL: [email protected]
24-
- GH_REF: github.com/zendframework/zend-eventmanager.git
25-
- 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="
2613

2714
matrix:
2815
include:
@@ -32,9 +19,8 @@ matrix:
3219
- php: 5.6
3320
env:
3421
- DEPS=locked
22+
- LEGACY_DEPS="phpunit/phpunit"
3523
- TEST_COVERAGE=true
36-
- DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)"
37-
- PATH="$HOME/.local/bin:$PATH"
3824
- php: 5.6
3925
env:
4026
- DEPS=latest
@@ -44,6 +30,7 @@ matrix:
4430
- php: 7
4531
env:
4632
- DEPS=locked
33+
- LEGACY_DEPS="phpunit/phpunit"
4734
- CS_CHECK=true
4835
- php: 7
4936
env:
@@ -54,9 +41,11 @@ matrix:
5441
- php: 7.1
5542
env:
5643
- DEPS=locked
44+
- TEST_COVERAGE=true
5745
- php: 7.1
5846
env:
5947
- DEPS=latest
48+
- BENCHMARKS=true
6049
- php: 7.2
6150
env:
6251
- DEPS=lowest
@@ -66,32 +55,24 @@ matrix:
6655
- php: 7.2
6756
env:
6857
- DEPS=latest
69-
allow_failures:
70-
- php: 7.2
71-
72-
notifications:
73-
email: false
7458

7559
before_install:
76-
- travis_retry composer self-update
7760
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || true ; fi
7861

7962
install:
80-
- travis_retry composer install $COMPOSER_ARGS
81-
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
82-
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
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
8365
- 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
8467
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
85-
- stty cols 120
86-
- COLUMNS=120 composer show
68+
- stty cols 120 && composer show
8769

8870
script:
8971
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
9072
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
91-
- 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
92-
93-
after_success:
94-
- if [[ $DEPLOY_DOCS == "true" ]]; then echo "Preparing to build and deploy documentation" ; ./zf-mkdoc-theme/deploy.sh ; echo "Completed deploying documentation" ; fi
9573

9674
after_script:
9775
- if [[ $TEST_COVERAGE == 'true' ]]; then composer upload-coverage ; fi
76+
77+
notifications:
78+
email: false

composer.json

Lines changed: 1 addition & 1 deletion
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": "^6.0.7 || ^5.7.14",
3939
"athletic/athletic": "^0.1",
4040
"zendframework/zend-stdlib": "^2.7.3 || ^3.0",
4141
"container-interop/container-interop": "^1.1.0",

0 commit comments

Comments
 (0)