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

PHP 7.2 + QA Tools + Docs - follow up #39 #43

Merged
merged 29 commits into from
Apr 25, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
c02a4e3
Enhancement: Raise minimum PHP version to PHP 7.1
localheinz Apr 21, 2017
7c1e85a
Enhancement: Update phpunit/phpunit
localheinz Apr 21, 2017
e536c04
Merge pull request #39 from localheinz/feature/php7.1
michalbundyra Nov 2, 2017
bb402fd
Renamed documentation directory: doc -> docs
michalbundyra Nov 2, 2017
1344efe
Moved all support files into docs directory and added SUPPORT.md
michalbundyra Nov 2, 2017
b6e9735
Updated .gitattributes
michalbundyra Nov 2, 2017
60eb6e5
Updated .gitignore - removed all IDE/OS specific files/dirs
michalbundyra Nov 2, 2017
9ace138
Updated year in LICENSE.md and mkdocs.yml
michalbundyra Nov 2, 2017
084d8a0
Removed old PHPUnit bootstrap
michalbundyra Nov 2, 2017
98d6b06
Updated PHPUnit configuration
michalbundyra Nov 2, 2017
bb1e183
Updated link to the documentation in README.md
michalbundyra Nov 2, 2017
ab83b97
CS fix - removed white chars
michalbundyra Nov 2, 2017
18581f5
Import TestCase
michalbundyra Nov 2, 2017
8482326
Updated composer skeleton and dependencies - bring back support PHP 5.6
michalbundyra Nov 2, 2017
a047efa
Updated Travis CI configuration
michalbundyra Nov 2, 2017
2aa67d2
Fixed typo in composer.json
michalbundyra Nov 3, 2017
59151b5
Updated .gitattributes and .gitignore - natsort
michalbundyra Nov 22, 2017
709fa5b
Removed empty line in LICENSE.md
michalbundyra Nov 22, 2017
f5955ad
Updated coveralls badge in README.md
michalbundyra Nov 22, 2017
8e8188b
Removed white characters at the end of the line in the docs
michalbundyra Nov 22, 2017
de2c867
Updated copyright year range in mkdocs.yml to match LICENSE.md
michalbundyra Nov 22, 2017
d4c54a5
Added PR and ISSUE github templates
michalbundyra Nov 22, 2017
68cc636
Updated to php-coveralls/php-coveralls
michalbundyra Dec 14, 2017
52b92d8
Added travis_retry on uploading coverage to coveralls in Travis CI co…
michalbundyra Apr 12, 2018
863bb15
Updated copyright year range in LICENSE.md and mkdocs.yml
michalbundyra Apr 12, 2018
3758c64
Updated link to https in mkdocs.yml
michalbundyra Apr 12, 2018
a693290
Updated branch aliases in composer.json
michalbundyra Apr 12, 2018
1ac5c68
Allow PHPUnit 7
michalbundyra Apr 12, 2018
bd8744d
Use "chat" instead of "slack"
michalbundyra Apr 13, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
/test export-ignore
/vendor export-ignore
.coveralls.yml export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.travis.yml export-ignore
.php_cs export-ignore
phpunit.xml.dist export-ignore
/.coveralls.yml export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/composer.lock export-ignore
/docs/ export-ignore
/mkdocs.yml export-ignore
/phpcs.xml export-ignore
/phpunit.xml.dist export-ignore
/test/ export-ignore
24 changes: 7 additions & 17 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
.buildpath
.DS_Store
.idea
.project
.settings/
.*.sw*
.*.un~
nbproject
doc/html/
tmp/
zf-mkdoc-theme/

clover.xml
composer.lock
coveralls-upload.json
phpunit.xml
vendor
/clover.xml
/coveralls-upload.json
/docs/html/
/phpunit.xml
/vendor/
/zf-mkdoc-theme.tgz
/zf-mkdoc-theme/
85 changes: 40 additions & 45 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,80 +2,75 @@ sudo: false

language: php

branches:
except:
- /^release-\d+\.\d+\.\d+.*$/
- /^ghgfk-.*$/

cache:
directories:
- $HOME/.composer/cache
- $HOME/.local
- zf-mkdoc-theme

env:
global:
- SITE_URL: https://zendframework.github.io/zend-file
- GH_USER_NAME: "Matthew Weier O'Phinney"
- GH_USER_EMAIL: [email protected]
- GH_REF: github.com/zendframework/zend-file.git
- secure: "ULsxLLRxxpphEwpOfpTWzW85g8LLoCsa9M5g2fiWlKhvl+FjfvSTkMmDHCzNq6QSfASpI+MTyZBxj34v8Fqq/U82IXCfoHP1mFYw//5qg6Xm28nVz48chjjCD5eIzKNI6vIdY+S+mhstcAkl3AqXAczsIxK34B6BZQxWOUUnDAn/jJ2bPpyiI/laePt76jel8xeMjNYrnIV9VvwsK9klttEOifMyK1pnGgTf8OvPD4WNaaiFLroE1JGFJJrbnColabFjXIQbKRupGpNp/Cz6Nn0M3I8Da1sSa1zeq4485c2eR61rJ7HXUX769wvPakDgrMjAGcIZGwvzfPqD0ldefXU2gsRpom4p7wUxQGndyQAF3ytUFn5QBz8TRPQ1AIT2uIsd3dblvqFn17HAPSKNihX4F9xkSogp/D5znYYwrZ3hrjZRY9idRJqDYkDV2/VTu1RiKI/SukPj2wTLxQwZttxHFhJapjKDzJ289TekA2ShBewCNR+3gl9uetzb0ir4C8l3TWo40fBjG8SMxan4y48EdOetAoWwjnigTnR0aXA/Mgm0Ly/ide1Xuho12P/cj54EWdmE+5LTUd70O0oBp0sLRZG6S3Wz0jRy4Z7XvbXCaoIBXHcmFjPOyfcmjgh0BBkHM0Ir8Cwe5CgwpaMQnUjw8nRDdG+TC62UczOyoHo="
- COMPOSER_ARGS="--no-interaction"
- COVERAGE_DEPS="php-coveralls/php-coveralls"

matrix:
include:
- php: 5.5
env:
- CS_CHECK=true
- php: 5.5
- php: 5.6
env:
- ZEND_SERVICEMANAGER_VERSION="^2.7.5"
- DEPS=lowest
- php: 5.6
env:
- TEST_COVERAGE=true
- DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)"
- PATH="$HOME/.local/bin:$PATH"
- DEPS=locked
- LEGACY_DEPS="phpunit/phpunit"
- php: 5.6
env:
- ZEND_SERVICEMANAGER_VERSION="^2.7.5"
- php: 7.0
- php: 7.0
- DEPS=latest
- php: 7
env:
- DEPS=lowest
- php: 7
env:
- DEPS=locked
- LEGACY_DEPS="phpunit/phpunit"
- php: 7
env:
- DEPS=latest
- php: 7.1
env:
- ZEND_SERVICEMANAGER_VERSION="^2.7.5"
- DEPS=lowest
- php: 7.1
env:
- DEPS=locked
- CS_CHECK=true
- TEST_COVERAGE=true
- php: 7.1
env:
- ZEND_SERVICEMANAGER_VERSION="^2.7.5"
- DEPS=latest
- php: 7.2
env:
- DEPS=lowest
- php: 7.2
env:
- DEPS=locked
- php: 7.2
env:
- DEPS=latest

before_install:
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
- composer self-update
- if [[ $TEST_COVERAGE == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls ; fi
- if [[ $ZEND_SERVICEMANAGER_VERSION != '' ]]; then composer require --dev --no-update "zendframework/zend-servicemanager:$ZEND_SERVICEMANAGER_VERSION" ; fi
- if [[ $ZEND_SERVICEMANAGER_VERSION == '' ]]; then composer require --dev --no-update "zendframework/zend-servicemanager:^3.0.3" ; fi

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

script:
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
- 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

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

after_script:
- if [[ $TEST_COVERAGE == 'true' ]]; then composer upload-coverage ; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry php vendor/bin/php-coveralls -v ; fi

notifications:
email: false
irc:
channels:
- "irc.freenode.org#zftalk.dev"
on_success: change
on_failure: always
slack:
rooms:
- secure: "NFRJJJPdQ8VmxRbejIsV1bk1DMTx9LEyl6vXMool9Vm8VLrSC0PHdsKYaHvrPG1CqwrHjxGeS4JL5FhLjh8rv13jIQUFT3qoKabXzA9afIMX3OAMF7MF3DKMmfzjp3x6G/zMwIH4Tps16d088k09K+Q1Mdr8Ko2wcx/fjDcsRQMgOJA6gCsg0FjTjJpuwzJCfaFcYJEJbm5RJRgSFcHeUd3J9yGjxCp6nrmOo7skflWaqxy3wAH1Pd6K3Cr966yTKiRl6Z7E0UC/zrcpC6LBqipMQDMJTlsFMEb0lMCm27MXdBEfroXP2KRkmLJuA+q6vb1wm+oXPwJ0DYn3oCbc8nFQK2EHrYSCMn2oplXKlUS2SQscVWuegypy4TbCBnAH3J12D1sLCft/qyCR36Ji9wPv00fXccxHO8xgssLHaBnyuflmjlNUlYWijElnzyjXsAn75I2fWg92FXZ3NXyn1oLc4bZG9vXCNa7a/KN+aRgXQwIEV/vRqO8ddJE0XDSlXDocRbLVylgc4wK7iyxvaEa/z6+ptLRqnNsVqida3klMyWordgwqyyHgdcFMiDtd1y2BL1aeLDf40l6aYoPFAm60W4W/wcfYFHI6aT1edsAFsFl34xmqPi/fNtx2CG9VxiSWxfIUvwZceG4gSO8pOk/LlenKr+Ars/aom8bBsgE="
on_success: change
on_failure: always
13 changes: 6 additions & 7 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
Copyright (c) 2005-2015, Zend Technologies USA, Inc.

Copyright (c) 2005-2018, Zend Technologies USA, Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

- Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
- Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

- Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
- Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.

- Neither the name of Zend Technologies USA, Inc. nor the names of its
contributors may be used to endorse or promote products derived from this
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# zend-file

[![Build Status](https://secure.travis-ci.org/zendframework/zend-file.svg?branch=master)](https://secure.travis-ci.org/zendframework/zend-file)
[![Coverage Status](https://coveralls.io/repos/zendframework/zend-file/badge.svg?branch=master)](https://coveralls.io/r/zendframework/zend-file?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/zendframework/zend-file/badge.svg?branch=master)](https://coveralls.io/github/zendframework/zend-file?branch=master)

zend-file provides a `ClassFileLocator` for locating PHP files containing
classes, abstract classes, interfaces, and traits in a specified tree.

- File issues at https://github.com/zendframework/zend-file/issues
- Documentation is at https://zendframework.github.io/zend-file/
- Documentation is at https://docs.zendframework.com/zend-file/
58 changes: 31 additions & 27 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,53 +1,58 @@
{
"name": "zendframework/zend-file",
"description": " ",
"description": "Locate PHP classfiles",
"license": "BSD-3-Clause",
"keywords": [
"zf2",
"zf",
"zendframework",
"file"
],
"homepage": "https://github.com/zendframework/zend-file",
"config": {
"sort-packages": true
},
"autoload": {
"psr-4": {
"Zend\\File\\": "src/"
}
"support": {
"docs": "https://docs.zendframework.com/zend-file/",
"issues": "https://github.com/zendframework/zend-file/issues",
"source": "https://github.com/zendframework/zend-file",
"rss": "https://github.com/zendframework/zend-file/releases.atom",
"chat": "https://zendframework-slack.herokuapp.com",
"forum": "https://discourse.zendframework.com/c/questions/components"
},
"require": {
"php": "^5.5 || ^7.0",
"zendframework/zend-stdlib": "^2.7 || ^3.0"
"php": "^5.6 || ^7.0",
"zendframework/zend-stdlib": "^2.7.7 || ^3.1"
},
"require-dev": {
"fabpot/php-cs-fixer": "1.7.*",
"phpunit/phpunit": "~4.0",
"phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.2",
"zendframework/zend-coding-standard": "~1.0.0",
"zendframework/zend-filter": "^2.6.1",
"zendframework/zend-i18n": "^2.6",
"zendframework/zend-filter": "^2.7.2",
"zendframework/zend-i18n": "^2.7.4",
"zendframework/zend-progressbar": "^2.5.2",
"zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3",
"zendframework/zend-session": "^2.6.2",
"zendframework/zend-validator": "^2.6"
"zendframework/zend-servicemanager": "^2.7.8 || ^3.3",
"zendframework/zend-session": "^2.8",
"zendframework/zend-validator": "^2.10.1"
},
"suggest": {
"zendframework/zend-filter": "Zend\\Filter component",
"zendframework/zend-i18n": "Zend\\I18n component",
"zendframework/zend-validator": "Zend\\Validator component"
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"branch-alias": {
"dev-master": "2.7-dev",
"dev-develop": "2.8-dev"
"autoload": {
"psr-4": {
"Zend\\File\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"ZendTest\\File\\": "test/"
}
},
"config": {
"sort-packages": true
},
"extra": {
"branch-alias": {
"dev-master": "2.7.x-dev",
"dev-develop": "2.8.x-dev"
}
},
"scripts": {
"check": [
"@cs-check",
Expand All @@ -56,7 +61,6 @@
"cs-check": "phpcs",
"cs-fix": "phpcbf",
"test": "phpunit --colors=always",
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml",
"upload-coverage": "coveralls -v"
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
}
}
Loading