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

PHP 7.2 + QA tools (follow up #18, #19, #20, #22) #25

Merged
merged 31 commits into from
Apr 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
881a4ec
Merge branch 'hotfix/readme'
weierophinney May 10, 2016
5863cb7
src_dir is deprecated
Koopzington Jun 21, 2016
da01040
Remove fast_finish flag
Koopzington Sep 15, 2016
f0a498e
Remove CS dependencies and add zend-coding-standard to require-dev
Koopzington Nov 13, 2016
f582b46
Delete .php_cs
Koopzington Nov 13, 2016
55c582b
add/update phpcs.xml
Koopzington Nov 13, 2016
261c335
add/update composer scripts
Koopzington Nov 13, 2016
48b2125
Use composer scripts in .travis.yml
Koopzington Nov 13, 2016
13535e1
Replace mentions of php-cs-fixer with phpcs
Koopzington Nov 13, 2016
12db0bc
Replace mentions of phpcs and phpcbf with composer scripts
Koopzington Nov 15, 2016
19fd8d2
Automated CS fixes
Koopzington Nov 17, 2016
90ead20
CS fixes
Koopzington Nov 17, 2016
b24f403
PHPUnit_Framework_TestCase changed to PHPUnit\Framework\TestCase
kokspflanze Jun 17, 2017
0a32654
drop php 5.5
kokspflanze Jun 17, 2017
8b1c624
setExpectedException updated to expectException
kokspflanze Jun 17, 2017
2b5e46b
removed old phpunit 4 check
kokspflanze Jun 17, 2017
952fdba
removed require_once
kokspflanze Jun 17, 2017
5e25e6e
testclasses with more than one class in one file splitted in more files
kokspflanze Jun 17, 2017
052fdfd
added composer.lock
kokspflanze Jun 17, 2017
6564125
cs update, eof_ending
kokspflanze Jun 17, 2017
7764a34
Merge pull request #18 from Koopzington/coveralls-yml-fix
michalbundyra Apr 27, 2018
7d26c83
Merge pull request #19 from Koopzington/remove-fast
michalbundyra Apr 27, 2018
6d52f77
Merge pull request #20 from Koopzington/new-coding-standard
michalbundyra Apr 27, 2018
96c5732
Merge pull request #22 from kokspflanze/phpunit_update
michalbundyra Apr 27, 2018
8554333
Updated Travis CI config
michalbundyra Apr 27, 2018
1c6a13e
Updated PHPUnit to allow 5, 6 and 7 series
michalbundyra Apr 27, 2018
917a2e7
Rebase doc templates
michalbundyra Apr 27, 2018
2e4689f
Added CHANGELOG for #25
michalbundyra Apr 27, 2018
a29f934
Removed unused stubs in tests
michalbundyra Apr 27, 2018
8d5df24
Updated PHPUnit configuration
michalbundyra Apr 27, 2018
94ccded
Updated zend-session in require-dev to 2.8.5 to support PHP 7.2
michalbundyra Apr 27, 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
1 change: 0 additions & 1 deletion .coveralls.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
coverage_clover: clover.xml
json_path: coveralls-upload.json
src_dir: src
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
tmp/
doc/html/
vendor/
zf-mkdoc-theme/

clover.xml
composer.lock
coveralls-upload.json
phpunit.xml
/clover.xml
/coveralls-upload.json
/docs/html/
/phpunit.xml
/vendor/
/zf-mkdoc-theme.tgz
/zf-mkdoc-theme/
45 changes: 0 additions & 45 deletions .php_cs

This file was deleted.

88 changes: 51 additions & 37 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,61 +2,75 @@ sudo: false

language: php

branches:
except:
- /^release-.*$/
- /^ghgfk-.*$/

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

env:
global:
- SITE_URL: https://zendframework.github.io/zend-progressbar
- GH_USER_NAME: "Matthew Weier O'Phinney"
- GH_USER_EMAIL: matthew@weierophinney.net
- GH_REF: github.com/zendframework/zend-progressbar.git
- secure: "hmWg/eVf6yosZc9dyVW5/mNs5S8YfwJzm8Xq3mhu96FinIuyNDiKC9x3UfjDEQNNko44ASPfvre/xcS43BAcatT399A3KTqui+t1vtTgL71VELVkJd6n50vOLC6HIrTtGpK3MbdeO7K3K0PjgtGNpnt/dP4tCbitL1C+pqjF9fm960PaBWUMU2fycb5Vqew9bi7+HMNoPfdvyJ56TVH2Blqr2VXrjmGxsWH1GHjvvRwfiAuOi6O9oAH/XgZU9OuSVA24Yz0RnTAlP/ukWCAbWVjcY3LLNmiRy23lUrrH3puSmctG6fyoWWQbq1VBrIFclfPtQjlI2nsIoPqRUD76bmKZI8CbxIrem5sIngtFqoK2Q0SchA6BOKoTzs6FxLuXyeceeFkim3NnPUlHUGOSGvJ8kGnkLzoPaZ+H42dEYHHfuv4z8IHcAV28VNR14IyDU6tRwhOiAYZsD1DloMXa9IP+mFEq79eK9KIxythuh76la7HiRnbAW/b4NQ6/gbO2/DtUiGIwX5Al8hUhtDMk4EoBF2AgJitOrhBEYDe88I3EqN2P4Nu11dYhknPVSvNaHhsg3RtCHF2bmCf8V6HVc/pPXkRG6OWxuIomgqw6GAxp0oSOQOkMkbd8yV3Fuw3XEFgPU2eIIPKK4OOP/U+d7fvnm1U6FSagpb7fjVN4s1c="
- COMPOSER_ARGS="--no-interaction"
- COVERAGE_DEPS="php-coveralls/php-coveralls"

matrix:
fast_finish: true
include:
- php: 5.5
- php: 5.6
env:
- DEPS=lowest
- php: 5.6
env:
- EXECUTE_CS_CHECK=true
- DEPS=locked
- LEGACY_DEPS="phpunit/phpunit"
- php: 5.6
env:
- EXECUTE_TEST_COVERALLS=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=latest
- php: 7
- php: hhvm
allow_failures:
- php: hhvm

notifications:
irc: "irc.freenode.org#zftalk.dev"
email: false
env:
- DEPS=lowest
- php: 7
env:
- DEPS=locked
- LEGACY_DEPS="phpunit/phpunit"
- php: 7
env:
- DEPS=latest
- php: 7.1
env:
- DEPS=lowest
- php: 7.1
env:
- DEPS=locked
- CS_CHECK=true
- TEST_COVERAGE=true
- php: 7.1
env:
- DEPS=latest
- php: 7.2
env:
- DEPS=lowest
- php: 7.2
env:
- DEPS=locked
- php: 7.2
env:
- DEPS=latest

before_install:
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
- composer self-update
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls ; fi
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; 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 [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/phpunit --coverage-clover clover.xml ; fi
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then ./vendor/bin/phpunit ; fi
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/php-cs-fixer fix -v --diff --dry-run ; 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
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi

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

notifications:
email: false
14 changes: 11 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,28 @@

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

## 2.5.3 - TBD
## 2.6.0 - TBD

### Added

- [#25](https://github.com/zendframework/zend-progressbar/pull/25) adds support for PHP 7.1 and 7.2.

- [#17](https://github.com/zendframework/zend-progressbar/pull/17) adds and
publishes the documentation to https://zendframework.github.io/zend-progressbar/
publishes the documentation to https://docs.zendframework.com/zend-progressbar/

### Changed

- Nothing.

### Deprecated

- Nothing.

### Removed

- Nothing.
- [#25](https://github.com/zendframework/zend-progressbar/pull/25) removes support for PHP 5.5.

- [#25](https://github.com/zendframework/zend-progressbar/pull/25) removes support for HHVM.

### Fixed

Expand Down
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,7 +1,7 @@
# zend-progressbar

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

zend-progressbar is a component to create and update progress bars in different
environments. It consists of a single backend, which outputs the progress through
Expand All @@ -10,4 +10,4 @@ optionally a status message, and then calls the adapter with some precalculated
values like percentage and estimated time left.

- File issues at https://github.com/zendframework/zend-progressbar/issues
- Documentation is at https://zendframework.github.io/zend-progressbar/
- Documentation is at https://docs.zendframework.com/zend-progressbar/
53 changes: 36 additions & 17 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,61 @@
{
"name": "zendframework/zend-progressbar",
"description": "component to create and update progressbars in different environments",
"description": "Create and update progress bars in different environments",
"license": "BSD-3-Clause",
"keywords": [
"zf2",
"zf",
"zendframework",
"progressbar"
],
"homepage": "https://github.com/zendframework/zend-progressbar",
"autoload": {
"psr-4": {
"Zend\\ProgressBar\\": "src/"
}
"support": {
"docs": "https://docs.zendframework.com/zend-progressbar/",
"issues": "https://github.com/zendframework/zend-progressbar/issues",
"source": "https://github.com/zendframework/zend-progressbar",
"rss": "https://github.com/zendframework/zend-progressbar/releases.atom",
"chat": "https://zendframework-slack.herokuapp.com",
"forum": "https://discourse.zendframework.com/c/questions/components"
},
"require": {
"php": "^5.5 || ^7.0",
"php": "^5.6 || ^7.0",
"zendframework/zend-stdlib": "^2.7 || ^3.0"
},
"require-dev": {
"phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.4",
"zendframework/zend-coding-standard": "~1.0.0",
"zendframework/zend-json": "^2.6.1",
"zendframework/zend-session": "^2.6.2",
"fabpot/php-cs-fixer": "1.7.*",
"phpunit/PHPUnit": "~4.0"
"zendframework/zend-session": "^2.8.5"
},
"suggest": {
"zendframework/zend-json": "Zend\\Json component",
"zendframework/zend-session": "To support progressbar persistent"
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"branch-alias": {
"dev-master": "2.5-dev",
"dev-develop": "2.6-dev"
"autoload": {
"psr-4": {
"Zend\\ProgressBar\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"ZendTest\\ProgressBar\\": "test/"
}
},
"config": {
"sort-packages": true
},
"extra": {
"branch-alias": {
"dev-master": "2.5.x-dev",
"dev-develop": "2.6.x-dev"
}
},
"scripts": {
"check": [
"@cs-check",
"@test"
],
"cs-check": "phpcs",
"cs-fix": "phpcbf",
"test": "phpunit --colors=always",
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
}
}
Loading