Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc: Update TravisCI & readme & info #25

Merged
merged 2 commits into from
Feb 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ We accept contributions via Pull Requests on [Github](https://github.com/typistt

## Pull Requests

- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - Check the code style with ``$ composer check-style`` and fix it with ``$ composer fix-style``.
- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - Check the code style with ``$ composer check-style``.

- **Add tests!** - Your patch won't be accepted if it doesn't have tests.

Expand Down
23 changes: 7 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
language: php

dist: trusty

sudo: false

branches:
only:
- master
Expand All @@ -24,35 +20,30 @@ notifications:

php:
- 7.0
- 7.1
- 7.2
- nightly

env:
global:
- COMPOSER_NO_INTERACTION=1
- TMPDIR=/tmp/
matrix:
- WP_VERSION=nightly
- WP_VERSION=latest WITH_COVERAGE=true
- WP_VERSION=4.8.2
- WP_VERSION=4.7.6
- WP_VERSION=4.9.4

matrix:
include:
- php: '7.1'
env: WITH_COVERAGE=true
allow_failures:
- php: nightly
- env: WP_VERSION=nightly
fast_finish: true

before_install:
# Set environment variables
- if [[ $(phpenv version-name) == "nightly" ]]; then export WITH_COVERAGE=false; fi

# Temporary disable test coverage on PHP 7.2
# TODO: Re-enable when PHP 7.2 published
- if [[ $(phpenv version-name) == "7.2" ]]; then export WITH_COVERAGE=false; fi

# Disable xDebug to speed up the build unless test coverage is needed
- if [[ "$WITH_COVERAGE" != "true" && $(phpenv version-name) != "nightly" ]]; then phpenv config-rm xdebug.ini; fi
- $WITH_COVERAGE || phpenv config-rm xdebug.ini || true
- mkdir -p $TMPDIR/AspectMock/wp-kses-view

# Install helper scripts
- travis_retry composer global require --prefer-dist --no-suggest typisttech/travis-nginx-wordpress
Expand Down
39 changes: 7 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/TypistTech/wp-kses-view/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/TypistTech/wp-kses-view/?branch=master)
[![PHP Versions Tested](http://php-eye.com/badge/typisttech/wp-kses-view/tested.svg)](https://travis-ci.org/TypistTech/wp-kses-view)
[![StyleCI](https://styleci.io/repos/107187828/shield?branch=master)](https://styleci.io/repos/107187828)
[![Dependency Status](https://gemnasium.com/badges/github.com/TypistTech/wp-kses-view.svg)](https://gemnasium.com/github.com/TypistTech/wp-kses-view)
[![License](https://poser.pugx.org/typisttech/wp-kses-view/license)](https://packagist.org/packages/typisttech/wp-kses-view)
[![Donate via PayPal](https://img.shields.io/badge/Donate-PayPal-blue.svg)](https://www.typist.tech/donate/wp-kses-view/)
[![Hire Typist Tech](https://img.shields.io/badge/Hire-Typist%20Tech-ff69b4.svg)](https://www.typist.tech/contact/)
[![Donate via PayPal](https://img.shields.io/badge/Donate-PayPal-blue.svg)](https://typist.tech/donate/wp-kses-view/)
[![Hire Typist Tech](https://img.shields.io/badge/Hire-Typist%20Tech-ff69b4.svg)](https://typist.tech/contact/)

Safely rendering for WordPress, the OOP way.

Expand All @@ -34,10 +33,7 @@ Safely rendering for WordPress, the OOP way.
- [What to do when wp.org plugin team tell me to clean up the `vendor` folder?](#what-to-do-when-wporg-plugin-team-tell-me-to-clean-up-the-vendor-folder)
- [Can two different plugins use this package at the same time?](#can-two-different-plugins-use-this-package-at-the-same-time)
- [Do you have real life examples that use this package?](#do-you-have-real-life-examples-that-use-this-package)
- [Support!](#support)
- [Donate via PayPal *](#donate-via-paypal-)
- [Donate Monero](#donate-monero)
- [Mine me some Monero](#mine-me-some-monero)
- [Support](#support)
- [Why don't you hire me?](#why-dont-you-hire-me)
- [Want to help in other way? Want to be a sponsor?](#want-to-help-in-other-way-want-to-be-a-sponsor)
- [Developing](#developing)
Expand Down Expand Up @@ -233,34 +229,13 @@ Here you go:

*Add your own plugin [here](https://github.com/TypistTech/wp-kses-view/edit/master/README.md)*

## Support!
## Support

### Donate via PayPal [![Donate via PayPal](https://img.shields.io/badge/Donate-PayPal-blue.svg)](https://www.typist.tech/donate/wp-kses-view/)

Love WP Kses View? Help me maintain WP Kses View, a [donation here](https://www.typist.tech/donate/wp-kses-view/) can help with it.

### Donate Monero

Send Monero to my public address: `43fiS7JzAK7eSHCpjTL5J1JYqPb6pvM2dGex7aoFZ5u5e5QRg6NKNnFGXqPh6C53E3M8UvqzemVt43uLgimwDpW41zXUHAp`

### Mine me some Monero

1. Open one of the follow web pages open on your computer
2. Start the miner
3. Adjust threads and CPU usages
4. Keep it running

If you have an AdBlocker:

[https://authedmine.com/media/miner.html?key=I2z6pueJaeVCz5dh1uA8cru5Fl108DtH&user=wp-kses-view&autostart=1](https://authedmine.com/media/miner.html?key=I2z6pueJaeVCz5dh1uA8cru5Fl108DtH&user=wp-kses-view&autostart=1)

else:

[https://coinhive.com/media/miner.html?key=I2z6pueJaeVCz5dh1uA8cru5Fl108DtH&user=wp-kses-view&autostart=1](https://coinhive.com/media/miner.html?key=I2z6pueJaeVCz5dh1uA8cru5Fl108DtH&user=wp-kses-view&autostart=1)
Love `wp-kses-view`? Help me maintain it, a [donation here](https://typist.tech/donation/) can help with it.

### Why don't you hire me?

Ready to take freelance WordPress jobs. Contact me via the contact form [here](https://www.typist.tech/contact/) or, via email [[email protected]](mailto:[email protected])
Ready to take freelance WordPress jobs. Contact me via the contact form [here](https://typist.tech/contact/) or, via email [[email protected]](mailto:[email protected])

### Want to help in other way? Want to be a sponsor?

Expand Down Expand Up @@ -312,7 +287,7 @@ Please see [CONTRIBUTING](.github/CONTRIBUTING.md) and [CODE_OF_CONDUCT](./CODE_

## Credits

[WP Kses View](https://github.com/TypistTech/wp-kses-view) is a [Typist Tech](https://www.typist.tech) project and maintained by [Tang Rufus](https://twitter.com/Tangrufus), freelance developer for [hire](https://www.typist.tech/contact/).
[WP Kses View](https://github.com/TypistTech/wp-kses-view) is a [Typist Tech](https://typist.tech) project and maintained by [Tang Rufus](https://twitter.com/Tangrufus), freelance developer for [hire](https://typist.tech/contact/).

Full list of contributors can be found [here](https://github.com/TypistTech/wp-kses-view/graphs/contributors).

Expand Down
9 changes: 4 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
"wordpress",
"wp"
],
"homepage": "https://www.typist.tech/projects/wp-kses-view",
"license": "GPL-2.0+",
"homepage": "https://typist.tech/projects/wp-kses-view",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Typist Tech",
"email": "[email protected]",
"homepage": "https://www.typist.tech/"
"homepage": "https://typist.tech/"
},
{
"name": "Tang Rufus",
"email": "[email protected]",
"homepage": "https://www.typist.tech/",
"homepage": "https://typist.tech/",
"role": "Developer"
}
],
Expand Down Expand Up @@ -53,7 +53,6 @@
},
"scripts": {
"check-style": "phpcs --standard=ruleset.xml --colors -p -s .",
"fix-style": "phpcbf --standard=ruleset.xml -p --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 .",
"install-dev-extra": [
"phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs"
],
Expand Down
2 changes: 1 addition & 1 deletion ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
~ @copyright 2017 Typist Tech
~ @license GPL-2.0+
~
~ @see https://www.typist.tech/projects/wp-kses-view
~ @see https://typist.tech/projects/wp-kses-view
~ @see https://github.com/TypistTech/wp-kses-view
-->

Expand Down
2 changes: 1 addition & 1 deletion src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @copyright 2017 Typist Tech
* @license GPL-2.0+
*
* @see https://www.typist.tech/projects/wp-kses-view
* @see https://typist.tech/projects/wp-kses-view
* @see https://github.com/TypistTech/wp-kses-view
*/

Expand Down
2 changes: 1 addition & 1 deletion src/NullView.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @copyright 2017 Typist Tech
* @license GPL-2.0+
*
* @see https://www.typist.tech/projects/wp-kses-view
* @see https://typist.tech/projects/wp-kses-view
* @see https://github.com/TypistTech/wp-kses-view
*/

Expand Down
2 changes: 1 addition & 1 deletion src/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @copyright 2017 Typist Tech
* @license GPL-2.0+
*
* @see https://www.typist.tech/projects/wp-kses-view
* @see https://typist.tech/projects/wp-kses-view
* @see https://github.com/TypistTech/wp-kses-view
*/

Expand Down
2 changes: 1 addition & 1 deletion src/ViewAwareTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @copyright 2017 Typist Tech
* @license GPL-2.0+
*
* @see https://www.typist.tech/projects/wp-kses-view
* @see https://typist.tech/projects/wp-kses-view
* @see https://github.com/TypistTech/wp-kses-view
*/

Expand Down
2 changes: 1 addition & 1 deletion src/ViewAwareTraitInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @copyright 2017 Typist Tech
* @license GPL-2.0+
*
* @see https://www.typist.tech/projects/wp-kses-view
* @see https://typist.tech/projects/wp-kses-view
* @see https://github.com/TypistTech/wp-kses-view
*/

Expand Down
2 changes: 1 addition & 1 deletion src/ViewInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @copyright 2017 Typist Tech
* @license GPL-2.0+
*
* @see https://www.typist.tech/projects/wp-kses-view
* @see https://typist.tech/projects/wp-kses-view
* @see https://github.com/TypistTech/wp-kses-view
*/

Expand Down
1 change: 1 addition & 0 deletions tests/wpunit/_bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
$kernel->init(
[
'debug' => true,
'cacheDir' => getenv('TMPDIR') . 'AspectMock/wp-kses-view',
'includePaths' => [codecept_root_dir('src')],
'excludePaths' => [codecept_root_dir('tests')],
]
Expand Down