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

Commit c7f7b2a

Browse files
committed
Impove testing and add php 7.2
1 parent 5079ece commit c7f7b2a

File tree

2 files changed

+33
-31
lines changed

2 files changed

+33
-31
lines changed

.travis.yml

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,59 +2,61 @@ 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 --no-plugins"
12+
- COVERAGE_DEPS="satooshi/php-coveralls"
2513

2614
matrix:
2715
include:
2816
- php: 5.6
2917
env:
30-
- 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"
18+
- DEPS=lowest
19+
- php: 5.6
20+
env:
21+
- DEPS=latest
3322
- php: 7
3423
env:
35-
- CS_CHECK=true
24+
- DEPS=lowest
25+
- php: 7
26+
env:
27+
- DEPS=latest
3628
- php: 7.1
37-
38-
notifications:
39-
email: false
29+
env:
30+
- DEPS=lowest
31+
- php: 7.1
32+
env:
33+
- DEPS=latest
34+
- BENCHMARKS=true
35+
- CS_CHECK=true
36+
- TEST_COVERAGE=true
37+
- php: 7.2
38+
env:
39+
- DEPS=lowest
40+
- php: 7.2
41+
env:
42+
- DEPS=latest
4043

4144
before_install:
4245
- 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
4546

4647
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
48+
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
49+
- if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update --with-dependencies $COMPOSER_ARGS $LEGACY_DEPS ; fi
50+
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
51+
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
52+
- stty cols 120 && composer show
5053

5154
script:
5255
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
5356
- 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
5857

5958
after_script:
6059
- if [[ $TEST_COVERAGE == 'true' ]]; then composer upload-coverage ; fi
60+
61+
notifications:
62+
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)