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

PHP 7.2 + QA Tools + Docs - follow up #5, #8, #9 #13

Merged
merged 35 commits into from
Apr 25, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
43270d3
src_dir is deprecated
Koopzington Jun 21, 2016
68f75d4
Remove fast_finish flag
Koopzington Sep 15, 2016
e001f4b
Remove CS dependencies and add zend-coding-standard to require-dev
Koopzington Nov 13, 2016
1d22c0c
add/update phpcs.xml
Koopzington Nov 13, 2016
2cea3c5
Use composer scripts in .travis.yml
Koopzington Nov 13, 2016
36e31d4
Replace mentions of php-cs-fixer with phpcs
Koopzington Nov 13, 2016
83e4dd3
CS fixes
Koopzington Nov 13, 2016
bf5e2e3
Replace mentions of phpcs and phpcbf with composer scripts
Koopzington Nov 15, 2016
ef0f943
Merge pull request #5 from Koopzington/coveralls-yml-fix
michalbundyra Nov 3, 2017
d49a4ca
Merge pull request #8 from Koopzington/remove-fast-finish
michalbundyra Nov 3, 2017
fa3e85e
Merge pull request #9 from Koopzington/new-coding-standard
michalbundyra Nov 3, 2017
ca67d3b
Renamed documentation directory: doc -> docs
michalbundyra Nov 3, 2017
cb59c96
Moved all support files into docs directory and added SUPPORT.md
michalbundyra Nov 3, 2017
935ab68
Updated .gitattributes
michalbundyra Nov 3, 2017
753450d
Updated .gitignore - removed all IDE/OS specific files/dirs
michalbundyra Nov 3, 2017
6c93930
Updated Travis CI configuration
michalbundyra Nov 3, 2017
fdb7919
Updated year in LICENSE.md and mkdocs.yml
michalbundyra Nov 3, 2017
2ffc139
Updated PHPUnit configuration
michalbundyra Nov 3, 2017
63c9003
Updated composer skeleton and dependencies + added composer.lock
michalbundyra Nov 3, 2017
c2881f4
Updated PHPUnit - ^5.7 || ^6.4
michalbundyra Nov 3, 2017
76a22f1
Updated link to the documentation - docs.zendframework.com
michalbundyra Nov 3, 2017
23631d4
Added zend-code to legacy dependencies as the latest version requires…
michalbundyra Nov 3, 2017
e06694a
Updated .gitattributes and .gitignore - natsort
michalbundyra Nov 22, 2017
61a35d0
Removed empty line in LICENSE.md
michalbundyra Nov 22, 2017
a6de06b
Updated coveralls badge in README.md
michalbundyra Nov 22, 2017
1d716d9
Removed ehite characters at the end of the line in the docs
michalbundyra Nov 22, 2017
5baa03f
Updated copyright range year in mkdocs.yml to match LICENSE.md
michalbundyra Nov 22, 2017
122c6d5
Added PR and ISSUE github templates
michalbundyra Nov 22, 2017
8f6fb1d
Updated to php-coveralls/php-coveralls
michalbundyra Dec 14, 2017
475baf7
Added travis_retry on uploading coverage to coveralls in Travis CI co…
michalbundyra Apr 12, 2018
9326720
Updated copyright year range in LICENSE.md and mkdocs.yml
michalbundyra Apr 12, 2018
25e80cb
Updated link to https in mkdocs.yml
michalbundyra Apr 12, 2018
ce5f879
Updated branch aliases in composer.json
michalbundyra Apr 12, 2018
e6753f1
Allow PHPUnit 7
michalbundyra Apr 12, 2018
0c1192f
Use "chat" instead of "slack"
michalbundyra Apr 13, 2018
File filter

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
phpcs.xml 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/
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/
87 changes: 50 additions & 37 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,62 +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-json-server
- GH_USER_NAME="Matthew Weier O'Phinney"
- [email protected]
- GH_REF=github.com/zendframework/zend-json-server.git
- secure: "HY4Zd9s8DQ1Qp2Ru2RwnTY67CxQ0ckdpBlt02QXvIKh8HMjwb5EochsQv0uj1Q2c5WigBLIHKN3Tv4WoCkSncDBsPR242vC02X9v78ZOZRirsicw/PES4cQ67/qT+biFXeM3wW9ME4DbSAcV5esL934wN99fCfNoPGkCLpL7LoNFUKf7medLJ72xulNP7mXpQOQCPBuB9ZixtItCO/DW9XouZ32ckoPjJiM6FSPszVbMyItK2+rNWjQ9BsxIGQsdPoX+jths8oHrTJJ5jabFNh527Az+n3kPhHLXy1CpU8CMSXSXEFOLxeJfMgVw4XbsKFarKqVcRvsSVPo4M6NFHUNX7SmT9p0DxfMDbc2avhp8CfSuvn675wKLwg3P2htwB41eB6XkOwwE0PTcsDBCbk0Y2JHyEp5KTTbwUSSUNU3ISpGUO+KBU82dyeiTb/YPBmA5yFE9UgxGDcI7UqReqQNamNFkI2ns4OjCwIH0X1fzIb2OAA7wvOGKib9N/FP9dz+gXJ59cH0YRAeA4Kob0N3WqjMHF4noiBCkGiCUIUHr2Bi9ceZnf4qDEKxbp3MFN7nKdfgiJQ1aU9ZLvjqhYCsW/8mx+7KNtjRF5tUtMQDrsJXt34pIoPmj0IudJQQx98xAPpWpZx7Czbrd53dkwEzqdcTHDMS3bfuqIKcrp60="
- 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:
- 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 zendframework/zend-code"
- php: 5.6
env:
- EXECUTE_TEST_COVERALLS=true
- DEPS=latest
- php: 7
env:
- EXECUTE_CS_CHECK=true
- php: hhvm
allow_failures:
- php: hhvm

notifications:
irc: "irc.freenode.org#zftalk.dev"
email: false
- DEPS=lowest
- php: 7
env:
- DEPS=locked
- LEGACY_DEPS="phpunit/phpunit zendframework/zend-code"
- 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
- travis_retry 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 composer test-coverage ; fi
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then composer test ; fi
- if [[ $EXECUTE_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
- 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 composer upload-coverage ; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry php vendor/bin/php-coveralls -v ; fi

notifications:
email: false
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,9 +1,9 @@
# zend-json-server

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

Provides a JSON-RPC server implementation.

- File issues at https://github.com/zendframework/zend-json-server/issues
- Documentation is at http://framework.zend.com/manual/current/en/index.html#zend-json-server
- Documentation is at https://docs.zendframework.com/zend-json-server/
50 changes: 30 additions & 20 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,50 +3,60 @@
"description": "Zend Json-Server is a JSON-RPC server implementation.",
"license": "BSD-3-Clause",
"keywords": [
"zf2",
"zf",
"zendframework",
"json",
"server",
"json-server"
],
"homepage": "https://github.com/zendframework/zend-json-server",
"extra": {
"branch-alias": {
"dev-master": "3.0-dev",
"dev-develop": "3.1-dev"
}
"support": {
"docs": "https://docs.zendframework.com/zend-json-server/",
"issues": "https://github.com/zendframework/zend-json-server/issues",
"source": "https://github.com/zendframework/zend-json-server",
"rss": "https://github.com/zendframework/zend-json-server/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-http": "^2.7",
"zendframework/zend-json": "^2.6.1 || ^3.0",
"zendframework/zend-http": "^2.5.4",
"zendframework/zend-server": "^2.6.1"
"zendframework/zend-server": "^2.7"
},
"require-dev": {
"squizlabs/php_codesniffer": "^2.3",
"phpunit/PHPUnit": "~4.0"
"phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.2",
"zendframework/zend-coding-standard": "~1.0.0"
},
"autoload": {
"psr-4": {
"Zend\\Json\\Server\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"ZendTest\\Json\\Server\\": "test/"
},
"files": [
"test/TestAsset/FooFunc.php"
]
],
"psr-4": {
"ZendTest\\Json\\Server\\": "test/"
}
},
"config": {
"sort-packages": true
},
"extra": {
"branch-alias": {
"dev-master": "3.0.x-dev",
"dev-develop": "3.1.x-dev"
}
},
"scripts": {
"check": [
"@cs-check",
"@test"
],
"upload-coverage": "coveralls",
"cs-check": "phpcs",
"cs-fix": "phpcbf fix -v",
"test": "phpunit",
"test-coverage": "phpunit --coverage-clover clover.xml"
"cs-fix": "phpcbf",
"test": "phpunit --colors=always",
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
}
}
Loading