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

Commit 6246866

Browse files
committed
Merge branch 'hotfix/210'
Close #210
2 parents 7e1b164 + f4e3f0b commit 6246866

File tree

5 files changed

+1181
-28
lines changed

5 files changed

+1181
-28
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
doc/html/
22
vendor/
33
zf-mkdoc-theme/
4-
composer.lock
54
phpunit.xml

.travis.yml

Lines changed: 68 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,54 +5,101 @@ language: php
55
cache:
66
directories:
77
- $HOME/.composer/cache
8-
- vendor
98
- $HOME/.local
109
- zf-mkdoc-theme
1110

1211
env:
1312
global:
14-
- SITE_URL: https://zendframework.github.io/zend-diactoros
15-
- GH_USER_NAME: "Matthew Weier O'Phinney"
16-
- GH_USER_EMAIL: [email protected]
17-
- GH_REF: github.com/zendframework/zend-diactoros.git
13+
- COMPOSER_ARGS="--no-interaction"
14+
- SITE_URL="https://zendframework.github.io/zend-diactoros"
15+
- GH_USER_NAME="Matthew Weier O'Phinney"
16+
- GH_USER_EMAIL="[email protected]"
17+
- GH_REF="github.com/zendframework/zend-diactoros.git"
1818
- secure: "abqt51VvId/3EvfymODyivOye2YNlTXPMNk297kM3G5bMxB7ILPUwwSTxfMHoiW9BHjJpdKi+IGBF4GKeYElQHdIwleyLow8dTCpUiJS3RogwaTcm2FbwEJDCFbkV4WRm/HHjriji/wBfBmaAJEfYYlLQAHQWTT7AK7dAgQmiAzaItStl2TV5D/XZU9GLNXay3nH0cDygf+g4t6rFcf3VsI5weHb3WhjATfN+mU82XXkwm2z8Pc1IglBYHskdlwUgbsz8ppTdXplXdKjnf6YdxPapYDKd7TecIV3BWtueC2i48rqblPaSWOzx7qMCA/4aJjzEBmuqqSlYXka2SdGPdBPbpGwcKv09e273xqWQ9sF3d8YhEsSrJBpMpgu4RN+ucLRa15Xcj0oF4aVxrFqxtC7wud7hC0pg6q48dY7PlQh/wTO2biuXcGACcGqMcjPgmE3HJYpK5HoWHUBoWi1VHqbTPRx1jIQD1ILibu9WkuTEtdAi5IXSYAmVSknfyZ7UYJuJgOjhmmkMOcYzD5JJuRGEJASzQk1tX5DItX8mH/LIW942bVOQ+fwsmL/Z+tJDnMpJXLd6tXtyYs99lxFSBSSjqNGAG5HUFjVczvQy9GeeDd2p70IA80NuQNjfXrsyQ9tg8d1keNTOpPCJUwZm7S6IEsvrWAGO6lZ+q7DPQk="
1919

2020
matrix:
2121
include:
2222
- php: 5.4
23+
env:
24+
- DEPS=lowest
25+
- php: 5.4
26+
env:
27+
- DEPS=locked
28+
- php: 5.4
29+
env:
30+
- DEPS=latest
31+
- php: 5.5
32+
env:
33+
- DEPS=lowest
2334
- php: 5.5
2435
env:
25-
- EXECUTE_CS_CHECK=true
36+
- DEPS=locked
37+
- php: 5.5
38+
env:
39+
- DEPS=latest
40+
- php: 5.6
41+
env:
42+
- DEPS=lowest
2643
- php: 5.6
2744
env:
28-
- EXECUTE_COVERAGE=true
45+
- DEPS=locked
2946
- DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)"
3047
- PATH="$HOME/.local/bin:$PATH"
31-
- php: 7.0
48+
- TEST_COVERAGE=true
49+
- php: 5.6
50+
env:
51+
- DEPS=latest
52+
- php: 7
53+
env:
54+
- DEPS=lowest
55+
- php: 7
56+
env:
57+
- DEPS=locked
58+
- CHECK_CS=true
59+
- php: 7
60+
env:
61+
- DEPS=latest
62+
- php: 7.1
63+
env:
64+
- DEPS=lowest
65+
- php: 7.1
66+
env:
67+
- DEPS=locked
3268
- php: 7.1
69+
env:
70+
- DEPS=latest
71+
- php: hhvm
72+
env:
73+
- DEPS=lowest
3374
- php: hhvm
75+
env:
76+
- DEPS=locked
77+
- php: hhvm
78+
env:
79+
- DEPS=latest
3480

3581
notifications:
3682
irc: "irc.freenode.org#zftalk.dev"
3783
email: false
3884

3985
before_install:
40-
- if [[ $EXECUTE_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
41-
- composer self-update
42-
- if [[ $EXECUTE_COVERAGE == 'true' ]]; then composer require --no-update satooshi/php-coveralls:dev-master ; fi
86+
- travis_retry composer self-update
87+
- if [[ $TEST_COVERAGE != 'true' && "$(php --version | grep xdebug -ci)" -ge 1 ]]; then phpenv config-rm xdebug.ini ; fi
4388

4489
install:
45-
- travis_retry composer install --no-interaction --prefer-source
46-
- composer info -i
90+
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
91+
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
92+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS satooshi/php-coveralls:^1.0 ; fi
93+
- travis_retry composer install $COMPOSER_ARGS
94+
- composer show
4795

4896
script:
49-
- if [[ $EXECUTE_COVERAGE == 'true' ]]; then composer test-coverage ; fi
50-
- if [[ $EXECUTE_COVERAGE != 'true' ]]; then composer test ; fi
51-
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then composer cs ; fi
52-
- 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
53-
54-
after_success:
55-
- if [[ $DEPLOY_DOCS == "true" ]]; then echo "Preparing to build and deploy documentation" ; ./zf-mkdoc-theme/deploy.sh ; echo "Completed deploying documentation" ; fi
97+
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
98+
- if [[ $CHECK_CS == 'true' ]]; then composer cs-check ; fi
99+
- if [[ $DEPLOY_DOCS == "true" && "$TRAVIS_TEST_RESULT" == "0" ]]; then travis_retry curl -sSL https://raw.githubusercontent.com/zendframework/zf-mkdoc-theme/master/theme-installer.sh | bash ; fi
56100

57101
after_script:
58-
- if [[ $EXECUTE_COVERAGE == 'true' ]]; then composer coveralls ; fi
102+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer upload-coverage ; fi
103+
104+
after_success:
105+
- if [[ $DEPLOY_DOCS == "true" ]]; then ./zf-mkdoc-theme/deploy.sh ; fi

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@
4646
},
4747
"scripts": {
4848
"check": [
49-
"@cs",
49+
"@cs-check",
5050
"@test"
5151
],
52-
"coveralls": "coveralls",
53-
"cs": "phpcs",
52+
"upload-coverage": "coveralls -v",
53+
"cs-check": "phpcs",
5454
"cs-fix": "phpcbf",
55-
"test": "phpunit",
56-
"test-coverage": "phpunit --coverage-clover clover.xml"
55+
"test": "phpunit --colors=always",
56+
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
5757
}
5858
}

0 commit comments

Comments
 (0)