-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 84a923f
Showing
12 changed files
with
1,673 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
version: 2 | ||
|
||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/php:7.1-node-browsers | ||
working_directory: ~/repo | ||
steps: | ||
- checkout | ||
- run: | ||
name: Prepare CLI | ||
command: sudo chmod 777 -R ~ ; echo $PWD ; ls -lart ; | ||
- run: | ||
name: Install Testing Dependencies | ||
command: | | ||
composer install --prefer-source --no-interaction | ||
- run: | ||
name: Running Tests | ||
command: | | ||
composer lint:check | ||
notify: | ||
docker: | ||
- image: circleci/node:latest | ||
steps: | ||
- run: sudo apt-get install httpie -y | ||
- run: | ||
name: Notify Slack Channel | ||
command: | | ||
date=$(date +"%s $*") | ||
if [ -z "${DEV_GROUP}" ]; then DEV_GROUP=${CIRCLE_PROJECT_USERNAME}; fi | ||
http POST $SLACK_WEBHOOK \ | ||
channel='#wpphx-github' \ | ||
username="${DEV_GROUP}-Deploybot" \ | ||
icon_emoji=':octocat:' \ | ||
attachments:=" | ||
[{ | ||
\"text\":\"CircleCI build ${CIRCLE_BUILD_NUM}. Release notes coming soon.\", | ||
\"author_name\":\"Github User: ${CIRCLE_USERNAME}\", | ||
\"author_link\":\"https://github.com/${CIRCLE_USERNAME}\", | ||
\"author_icon\":\"\", | ||
\"ts\":\"${date}\", | ||
\"color\":\"#36a64f\", | ||
\"fallback\":\"'t'\", | ||
\"title\":\"'Released ${CIRCLE_PROJECT_REPONAME} version ${CIRCLE_TAG} '\", | ||
\"title_link\":\"${CIRCLE_BUILD_URL}\", | ||
\"footer\":\"'${DEV_GROUP} CircleCI Deployment'\", | ||
\"footer_icon\":\"https://logo.clearbit.com/circleci.com/?size=64\" | ||
}] | ||
" \ | ||
-v | ||
workflows: | ||
version: 2 | ||
build-n-notify: | ||
jobs: | ||
- build: | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- notify: | ||
requires: | ||
- build | ||
filters: | ||
tags: | ||
only: /.*/ | ||
branches: | ||
ignore: /.*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="wpphx"> | ||
<description>phpcs ruleset, based on WordPress Core and VIP standards.</description> | ||
|
||
<!-- Exclude specific Composer-related directories from linting. --> | ||
<exclude-pattern>*/vendor/*</exclude-pattern> | ||
<exclude-pattern>*/lib/index.php</exclude-pattern> | ||
<exclude-pattern>*/lib/autoload.php</exclude-pattern> | ||
<exclude-pattern>*/lib/bin/*</exclude-pattern> | ||
<exclude-pattern>*/lib/composer/*</exclude-pattern> | ||
|
||
<!-- Exclude static assets from linting. --> | ||
<exclude-pattern>*/assets/*</exclude-pattern> | ||
<exclude-pattern>*\.(css|js|xml)</exclude-pattern> | ||
<exclude-pattern>*/node_modules/*</exclude-pattern> | ||
|
||
<!-- Don't fail in CI if there are warnings. --> | ||
<config name="ignore_warnings_on_exit" value="1" /> | ||
|
||
<!-- Only worry about WordPress 5.0+. --> | ||
<config name="minimum_supported_wp_version" value="5.0" /> | ||
|
||
<rule ref="WordPress"> | ||
<exclude name="WordPress.WhiteSpace.PrecisionAlignment.Found" /> | ||
</rule> | ||
|
||
<rule ref="WordPress-Core"></rule> | ||
|
||
<rule ref="WordPress-VIP"> | ||
<exclude name="WordPress.VIP.SuperGlobalInputUsage" /> | ||
<exclude name="WordPress.VIP.RestrictedFunctions.switch_to_blog" /> | ||
<exclude name="WordPress.VIP.RestrictedFunctions.get_page_by_title" /> | ||
<exclude name="WordPress.VIP.RestrictedFunctions.get_page_by_title_get_page_by_title" /> | ||
</rule> | ||
|
||
<rule ref="WordPress.Files.FileName.InvalidClassFileName"> | ||
<exclude-pattern>/lib/*</exclude-pattern> | ||
<exclude-pattern>/src/*</exclude-pattern> | ||
</rule> | ||
</ruleset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
indent_size = 4 | ||
indent_style = tab | ||
|
||
[*.{json,yml}] | ||
indent_size = 2 | ||
indent_style = space |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.idea/ | ||
vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#### 1.0.0 | ||
* Initial release refactored from abstract_plugin_base |
Oops, something went wrong.