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

Commit 5b02b23

Browse files
committed
Merge branch 'hotfix/394'
Close #394
2 parents 7ec633e + 4d0d643 commit 5b02b23

File tree

6 files changed

+2721
-36
lines changed

6 files changed

+2721
-36
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
doc/html/
22
vendor/
3+
phpunit.xml
34
zf-mkdoc-theme/
45
clover.xml
5-
composer.lock
66
coveralls-upload.json
77
zf-mkdoc-theme.tgz

.travis.yml

Lines changed: 48 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ cache:
1111

1212
env:
1313
global:
14+
- COMPOSER_ARGS="--no-interaction"
15+
- COVERAGE_DEPS="satooshi/php-coveralls"
1416
- SITE_URL=https://zendframework.github.io/zend-expressive
1517
- GH_USER_NAME="Matthew Weier O'Phinney"
1618
@@ -19,40 +21,72 @@ env:
1921

2022
matrix:
2123
include:
22-
- php: 5.5
24+
- php: 5.6
2325
env:
24-
- EXECUTE_CS_CHECK=true
26+
- DEPS=lowest
2527
- php: 5.6
2628
env:
27-
- EXECUTE_TEST_COVERALLS=true
29+
- DEPS=locked
30+
- TEST_COVERAGE=true
2831
- DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)"
2932
- PATH="$HOME/.local/bin:$PATH"
33+
- php: 5.6
34+
env:
35+
- DEPS=latest
36+
- php: 7
37+
env:
38+
- DEPS=lowest
39+
- php: 7
40+
env:
41+
- DEPS=locked
42+
- CS_CHECK=true
3043
- php: 7
44+
env:
45+
- DEPS=latest
46+
- php: 7.1
47+
env:
48+
- DEPS=lowest
49+
- php: 7.1
50+
env:
51+
- DEPS=locked
52+
- php: 7.1
53+
env:
54+
- DEPS=latest
55+
- php: hhvm
56+
env:
57+
- DEPS=lowest
58+
- php: hhvm
59+
env:
60+
- DEPS=locked
3161
- php: hhvm
62+
env:
63+
- DEPS=latest
3264
allow_failures:
3365
- php: hhvm
3466

3567
before_install:
36-
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
37-
- composer self-update
38-
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls:dev-master ; fi
68+
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
69+
- travis_retry composer self-update
3970

4071
install:
41-
- travis_retry composer install --no-interaction
42-
- composer info -i
72+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
73+
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
74+
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
75+
- travis_retry composer install $COMPOSER_ARGS
76+
- composer show
4377

4478
script:
45-
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer test-coverage ; fi
46-
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then composer test ; fi
47-
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then composer cs ; fi
48-
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then composer license-check ; fi
79+
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
80+
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
81+
- if [[ $CS_CHECK == 'true' ]]; then composer license-check ; fi
4982
- 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
5083

5184
after_script:
52-
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer coveralls ; fi
85+
- if [[ $TEST_COVERAGE == 'true' ]]; then composer upload-coverage ; fi
5386

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

5790
notifications:
58-
email: true
91+
irc: "irc.freenode.org#zftalk.dev"
92+
email: false

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ section on running tests.
7575
To run CS checks only:
7676

7777
```console
78-
$ composer cs
78+
$ composer cs-check
7979
```
8080

8181
To attempt to automatically fix common CS issues:

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717
},
1818
"require": {
19-
"php": "^5.5 || ^7.0",
19+
"php": "^5.6 || ^7.0",
2020
"container-interop/container-interop": "^1.1",
2121
"psr/http-message": "^1.0",
2222
"zendframework/zend-diactoros": "^1.1",
@@ -27,7 +27,7 @@
2727
"require-dev": {
2828
"filp/whoops": "^1.1 || ^2.0",
2929
"phpunit/phpunit": "^4.7",
30-
"squizlabs/php_codesniffer": "^2.3",
30+
"zendframework/zend-coding-standard": "~1.0.0",
3131
"zendframework/zend-expressive-aurarouter": "^1.0",
3232
"zendframework/zend-expressive-fastroute": "^1.0",
3333
"zendframework/zend-expressive-zendrouter": "^1.0",
@@ -53,11 +53,11 @@
5353
},
5454
"scripts": {
5555
"check": [
56-
"@cs",
56+
"@cs-check",
5757
"@test"
5858
],
59-
"coveralls": "coveralls",
60-
"cs": "phpcs",
59+
"upload-coverage": "coveralls -v",
60+
"cs-check": "phpcs",
6161
"cs-fix": "phpcbf",
6262
"test": "phpunit",
6363
"test-coverage": "phpunit --coverage-clover clover.xml",

0 commit comments

Comments
 (0)