Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Travis: Update config #83

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
21 changes: 10 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
language: php

dist: trusty

# Wait until travis bug fixes
sudo: require

branches:
only:
- master
Expand All @@ -23,27 +18,31 @@ addons:
apt:
packages:
- nginx
hosts:
- wp.dev

notifications:
email:
on_success: never
on_failure: change

php:
- 7.0
- 7.1
- 7.2
- nightly

env:
global:
- COMPOSER_NO_INTERACTION=1
matrix:
- WP_VERSION=nightly
- WP_VERSION=latest WITH_COVERAGE=true
- WP_VERSION=4.8
- WP_VERSION=4.7.5
- WP_VERSION=4.9.3
- WP_VERSION=4.8.5

matrix:
allow_failures:
- php: nightly
- env: WP_VERSION=nightly
fast_finish: true

Expand All @@ -52,7 +51,7 @@ before_install:
- if [[ "$WITH_COVERAGE" != "true" ]]; then phpenv config-rm xdebug.ini; fi

# Install helper scripts
- travis_retry composer global require --prefer-dist --no-suggest typisttech/travis-nginx-wordpress
- travis_retry composer global require --prefer-dist --no-suggest typisttech/travis-nginx-wordpress:^3.0
- export PATH=$HOME/.composer/vendor/bin:$PATH
- tnw-install-nginx
- tnw-install-wordpress
Expand Down Expand Up @@ -86,7 +85,7 @@ deploy:
skip_cleanup: true
on:
condition: "$WP_VERSION = latest"
php: 7.0
php: 7.1
tags: true
repo: TypistTech/wp-cloudflare-guard
- provider: wordpress-plugin
Expand All @@ -112,5 +111,5 @@ deploy:
on:
branch: master
condition: "$WP_VERSION = latest"
php: 7.0
php: 7.2
repo: TypistTech/wp-cloudflare-guard
2 changes: 1 addition & 1 deletion Gruntfile.js
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-cloudflare-guard
* @see https://typist.tech/projects/wp-cloudflare-guard
* @see https://wordpress.org/plugins/wp-cloudflare-guard/
*/

Expand Down
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/TypistTech/wp-cloudflare-guard/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/TypistTech/wp-cloudflare-guard/?branch=master)
[![PHP Versions Tested](http://php-eye.com/badge/typisttech/wp-cloudflare-guard/tested.svg)](https://travis-ci.org/TypistTech/wp-cloudflare-guard)
[![StyleCI](https://styleci.io/repos/83855037/shield?branch=master)](https://styleci.io/repos/83855037)
[![Dependency Status](https://gemnasium.com/badges/github.com/TypistTech/wp-cloudflare-guard.svg)](https://gemnasium.com/github.com/TypistTech/wp-cloudflare-guard)
[![License](https://poser.pugx.org/typisttech/wp-cloudflare-guard/license)](https://packagist.org/packages/typisttech/wp-cloudflare-guard)
[![Donate via PayPal](https://img.shields.io/badge/Donate-PayPal-blue.svg)](https://www.typist.tech/donate/wp-cloudflare-guard/)
[![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-cloudflare-guard/)
[![Hire Typist Tech](https://img.shields.io/badge/Hire-Typist%20Tech-ff69b4.svg)](https://typist.tech/contact/)

Connecting WordPress with Cloudflare firewall, protect your WordPress site at DNS level. Automatically create firewall rules to block dangerous IPs

Expand Down Expand Up @@ -44,7 +43,7 @@ Connecting WordPress with Cloudflare firewall, protect your WordPress site at DN



This repository is a development version of [WP Cloudflare Guard](https://wordpress.org/plugins/wp-cloudflare-guard/) intended to facilitate communication with developers. It is not stable and not intended for installation on production sites.
This repository is a development version of [WP Cloudflare Guard](https://wordpress.org/plugins/wp-cloudflare-guard/) intended to facilitate communication with developers. It is not stable and not intended for installation on production sites.

Bug reports and pull requests are welcome.

Expand Down Expand Up @@ -122,15 +121,15 @@ The `nightly` branch is built by TravisCI whenever the `master` branch is update

## Support!

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

Love WP Cloudflare Guard? Help me maintain WP Cloudflare Guard, a [donation here](https://www.typist.tech/donate/wp-cloudflare-guard/) can help with it.
Love WP Cloudflare Guard? Help me maintain WP Cloudflare Guard, a [donation here](https://typist.tech/donate/wp-cloudflare-guard/) 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?
### Want to help in other way? Want to be a sponsor?

Contact: [Tang Rufus](mailto:[email protected])

Expand All @@ -151,7 +150,7 @@ $ composer test

We also test all PHP files against [PSR-2: Coding Style Guide](http://www.php-fig.org/psr/psr-2/) and part of the [WordPress coding standard](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards).

Check the code style with ``$ composer check-style`` and fix it with ``$ composer fix-style``.
Check the code style with ``$ composer check-style``.



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

## Credits

[WP Cloudflare Guard](https://github.com/TypistTech/wp-cloudflare-guard) 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 Cloudflare Guard](https://github.com/TypistTech/wp-cloudflare-guard) 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-cloudflare-guard/graphs/contributors).

Expand Down
23 changes: 12 additions & 11 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
=== WP Cloudflare Guard ===
Contributors: typisttech, tangrufus
Donate link: https://www.typist.tech/donate/wp-cloudflare-guard/
Donate link: https://typist.tech/donate/wp-cloudflare-guard/
Tags: cloudflare, firewall, security, spam
Requires at least: 4.7
Tested up to: 4.7.3
Requires at least: 4.8.5
Requires PHP: 7.1.0
Tested up to: 4.9
Stable tag: 0.2.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand All @@ -20,7 +21,7 @@ Connecting WordPress with Cloudflare firewall, protect your WordPress site at DN

= Integrations (Coming soon as add-ons) =

* [iThemes Security](https://www.typist.tech/go/ithemes-security/)
* [iThemes Security](https://typist.tech/go/ithemes-security/)
* [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
* [WordPress Zero Spam](https://wordpress.org/plugins/zero-spam)

Expand All @@ -40,11 +41,11 @@ At the time of writing, Cloudflare's [official plugin](https://wordpress.org/plu
* You need a Cloudflare account (free plan is okay)
* This plugin was not built by [Cloudflare, Inc](https://www.cloudflare.com/)

> If you like the plugin, feel free to [rate it](https://wordpress.org/support/plugin/wp-cloudflare-guard/reviews/#new-post) or [donate via PayPal](https://www.typist.tech/donate/wp-cloudflare-guard/). Thanks a lot! :)
> If you like the plugin, feel free to [rate it](https://wordpress.org/support/plugin/wp-cloudflare-guard/reviews/#new-post) or [donate via PayPal](https://typist.tech/donate/wp-cloudflare-guard/). Thanks a lot! :)

= For Bloggers =

If you have written an article about `WP Cloudflare Guard`, do [let me know](https://www.typist.tech/contact/). For any questions, shoot me an email at [[email protected]](mailto:[email protected])
If you have written an article about `WP Cloudflare Guard`, do [let me know](https://typist.tech/contact/). For any questions, shoot me an email at [[email protected]](mailto:[email protected])

= For Developers =

Expand All @@ -53,7 +54,7 @@ WP Cloudflare Guard is open source and hosted on [GitHub](https://github.com/Typ
= Who make this plugin? =

[Tang Rufus](mailto:[email protected]), a freelance developer for hire.
I make [Typist Tech](https://www.typist.tech/) also.
I make [Typist Tech](https://typist.tech/) also.

= Support =

Expand Down Expand Up @@ -94,7 +95,7 @@ PHP 7 or later.
= Is this plugin written by Cloudflare, Inc.? =

No.
This plugin is a [Typist Tech](https://www.typist.tech) project.
This plugin is a [Typist Tech](https://typist.tech) project.

= Can I install WP Cloudflare Guard, Sunny and Cloudflare's official plugin at the same time? =

Expand Down Expand Up @@ -132,18 +133,18 @@ If you know what `GitHub` is, use [GitHub issues](https://github.com/Typisttech/
If you like the plugin, feel free to:

* Give us a 5-star review on [WordPress.org](https://wordpress.org/support/plugin/wp-cloudflare-guard/reviews/#new-post)
* Donate via [PayPal](https://www.typist.tech/donate/wp-cloudflare-guard/). Thanks a lot! :)
* Donate via [PayPal](https://typist.tech/donate/wp-cloudflare-guard/). Thanks a lot! :)
* Translate it at [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/wp-cloudflare-guard).

Besides, `WP Cloudflare Guard` is open source and hosted on [GitHub](https://github.com/TypistTech/wp-cloudflare-guard). Feel free to make pull requests.

Last but not least, you can hire me. Shoot me an email at [[email protected]](mailto:[email protected]) or use this [contact form](https://www.typist.tech/contact/).
Last but not least, you can hire me. Shoot me an email at [[email protected]](mailto:[email protected]) or use this [contact form](https://typist.tech/contact/).

= What if I want more? =

Hire me!

Shoot me an email at [[email protected]](mailto:[email protected]) or use this [contact form](https://www.typist.tech/contact/).
Shoot me an email at [[email protected]](mailto:[email protected]) or use this [contact form](https://typist.tech/contact/).


== Screenshots ==
Expand Down
17 changes: 7 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
{
"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 All @@ -30,7 +30,7 @@
"source": "https://github.com/TypistTech/wp-cloudflare-guard"
},
"require": {
"php": "^7.0",
"php": "^7.1",
"cloudflare/cf-ip-rewrite": "^1.0",
"league/container": "^2.4.1",
"typisttech/cloudflare-wp-api": "^0.3.0",
Expand All @@ -40,13 +40,11 @@
},
"require-dev": {
"codeception/aspect-mock": "^2.0",
"doctrine/annotations": "<1.5.0",
"doctrine/instantiator": "<1.1.0",
"jakoch/phantomjs-installer": "^2.1",
"lucatume/wp-browser": "^1.21.3",
"neronmoon/scriptsdev": "^0.1.1",
"site5/phantoman": "^1.1",
"wp-coding-standards/wpcs": "^0.12.0"
"lucatume/wp-browser": "^1.22",
"neronmoon/scriptsdev": "^0.1.2",
"site5/phantoman": "^2.0",
"wp-coding-standards/wpcs": "^0.14.0"
},
"autoload": {
"classmap": [
Expand Down Expand Up @@ -74,7 +72,6 @@
"github_changelog_generator --no-verbose"
],
"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": [
"PhantomInstaller\\Installer::installPhantomJS",
"phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs"
Expand Down
Loading