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

Commit 43a82de

Browse files
committed
Merge branch 'hotfix/qa-tools'
Close #6 Close #10 Close #11 Close #16 Close #19 Close #21
2 parents bd0b25a + db876cf commit 43a82de

16 files changed

+1958
-135
lines changed

.coveralls.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
coverage_clover: clover.xml
22
json_path: coveralls-upload.json
3-
src_dir: src

.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

.php_cs

Lines changed: 0 additions & 45 deletions
This file was deleted.

.travis.yml

Lines changed: 39 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,61 +2,66 @@ 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-
- SITE_URL: https://zendframework.github.io/zend-uri
19-
- GH_USER_NAME: "Matthew Weier O'Phinney"
20-
- GH_USER_EMAIL: [email protected]
21-
- GH_REF: github.com/zendframework/zend-uri.git
22-
- secure: "b4gS0ysUKbKmSSxDWk9ig1/OoFz4GOUoiGp84+zl1p7t4UHLfVcWhpHOO0Hu+VJ+3OV9ZNVSskeCgzQH6kdy6lc18kFf9RRrBEOxJQNWpwYmtorwEWxiwemZ3CIVx2DzmZ2zQOJpPaf260PHF25RGdbxATKnAjIPXsDmb82QRSB92AASAmTWnH9DE6Mx/M3jhYjkIBtkasfEtJXBSAlJgHWlFxdNRfABYUb98XTCuOXyAotc8WT/QalBjexMsdhkyAlrJ1AyMv9z8YqcXVkP6aHJwr5EutPp+E48fHAxDhLmo86Ww1CIpM+hB1IbUKtvGrtdMHQdcf7uNSqLoFcnPcxe/uR0oCgCjyRfliAGU3vwu9s9TBuk+CmtCXxNG6BDZbNd2iu468qaKsrlCgwFhKHQ9vLlHIBobhaTDm/wbtAvMXefduR6f2Y6tMvI/OvVU/bK7ESBzg5M6znQUwUikEsrQrNYyfLyEuamJNT5sUwWWxQJ4DZaSnmYu0Y4SSlPACawiNqMu2Eew+b+jI0L5tU+3qLlhTYJns3SGHzafbcy59d5B1CbW6XYxLUX7/D3AQPL/E5JOcEa0WPH4LpEemXSiS7iRWHQhz3FoBJJ8I7a09EeXv3MxcG4Pb8c0OF1Mqk9j04/UnCRsuhQb+G9wupq8upaN5Hemuwe0CCp0SQ="
11+
- COMPOSER_ARGS="--no-interaction"
12+
- COVERAGE_DEPS="php-coveralls/php-coveralls"
2313

2414
matrix:
25-
fast_finish: true
2615
include:
27-
- php: 5.5
16+
- php: 5.6
17+
env:
18+
- DEPS=lowest
19+
- php: 5.6
2820
env:
29-
- EXECUTE_CS_CHECK=true
21+
- DEPS=locked
22+
- LEGACY_DEPS="phpunit/phpunit"
3023
- php: 5.6
3124
env:
32-
- EXECUTE_TEST_COVERALLS=true
33-
- DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)"
34-
- PATH="$HOME/.local/bin:$PATH"
25+
- DEPS=latest
26+
- TEST_COVERAGE=true
3527
- php: 7
36-
- php: hhvm
37-
allow_failures:
38-
- php: hhvm
28+
env:
29+
- DEPS=lowest
30+
- php: 7
31+
env:
32+
- DEPS=locked
33+
- CHECK_CS=true
34+
- php: 7
35+
env:
36+
- DEPS=latest
37+
- php: 7.1
38+
env:
39+
- DEPS=lowest
40+
- php: 7.1
41+
env:
42+
- DEPS=locked
43+
- php: 7.1
44+
env:
45+
- DEPS=latest
3946

4047
notifications:
41-
irc: "irc.freenode.org#zftalk.dev"
4248
email: false
4349

4450
before_install:
45-
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
46-
- composer self-update
47-
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls ; fi
51+
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini ; fi
4852

4953
install:
50-
- travis_retry composer install --no-interaction --ignore-platform-reqs
54+
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
55+
- if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
56+
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
57+
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
58+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
59+
- stty cols 120 && composer show
5160

5261
script:
53-
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/phpunit --coverage-clover clover.xml ; fi
54-
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then ./vendor/bin/phpunit ; fi
55-
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/php-cs-fixer fix -v --diff --dry-run ; 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
62+
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; fi
63+
- if [[ $TEST_COVERAGE != 'true' ]]; then composer test ; fi
64+
- if [[ $CHECK_CS == 'true' ]]; then composer cs-check ; fi
6065

6166
after_script:
62-
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/coveralls ; fi
67+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry php ./vendor/bin/php-coveralls ; fi

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
All notable changes to this project will be documented in this file, in reverse chronological order by release.
44

5-
## 2.5.3 - TBD
5+
## 2.6.0 - TBD
66

77
### Added
88

@@ -15,7 +15,11 @@ All notable changes to this project will be documented in this file, in reverse
1515

1616
### Removed
1717

18-
- Nothing.
18+
- [#16](https://github.com/zendframework/zend-uri/pull/16) removes support for
19+
PHP 5.5.
20+
21+
- [#16](https://github.com/zendframework/zend-uri/pull/16) removes support for
22+
HHVM.
1923

2024
### Fixed
2125

CONTRIBUTING.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,24 +77,24 @@ To do so:
7777

7878
## Running Coding Standards Checks
7979

80-
This component uses [php-cs-fixer](http://cs.sensiolabs.org/) for coding
80+
This component uses [phpcs](https://github.com/squizlabs/PHP_CodeSniffer) for coding
8181
standards checks, and provides configuration for our selected checks.
82-
`php-cs-fixer` is installed by default via Composer.
82+
`phpcs` is installed by default via Composer.
8383

8484
To run checks only:
8585

8686
```console
87-
$ ./vendor/bin/php-cs-fixer fix . -v --diff --dry-run --config-file=.php_cs
87+
$ composer cs-check
8888
```
8989

90-
To have `php-cs-fixer` attempt to fix problems for you, omit the `--dry-run`
91-
flag:
90+
`phpcs` also includes a tool for fixing most CS violations, `phpcbf`:
91+
9292

9393
```console
94-
$ ./vendor/bin/php-cs-fixer fix . -v --diff --config-file=.php_cs
94+
$ composer cs-fix
9595
```
9696

97-
If you allow php-cs-fixer to fix CS issues, please re-run the tests to ensure
97+
If you allow `phpcbf` to fix CS issues, please re-run the tests to ensure
9898
they pass, and make sure you add and commit the changes after verification.
9999

100100
## Recommended Workflow for Contributions

composer.json

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
}
1414
},
1515
"require": {
16-
"php": "^5.5 || ^7.0",
16+
"php": "^5.6 || ^7.0",
1717
"zendframework/zend-escaper": "^2.5",
1818
"zendframework/zend-validator": "^2.5"
1919
},
2020
"extra": {
2121
"branch-alias": {
22-
"dev-master": "2.5-dev",
23-
"dev-develop": "2.6-dev"
22+
"dev-master": "2.5.x-dev",
23+
"dev-develop": "2.6.x-dev"
2424
}
2525
},
2626
"autoload-dev": {
@@ -29,7 +29,17 @@
2929
}
3030
},
3131
"require-dev": {
32-
"fabpot/php-cs-fixer": "1.7.*",
33-
"phpunit/PHPUnit": "~4.0"
32+
"phpunit/phpunit": "^6.2.1 || ^5.7.15",
33+
"zendframework/zend-coding-standard": "~1.0.0"
34+
},
35+
"scripts": {
36+
"check": [
37+
"@cs-check",
38+
"@test"
39+
],
40+
"cs-check": "phpcs",
41+
"cs-fix": "phpcbf",
42+
"test": "phpunit --colors=always",
43+
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
3444
}
3545
}

0 commit comments

Comments
 (0)