Skip to content

Commit

Permalink
initialize version 1 files
Browse files Browse the repository at this point in the history
  • Loading branch information
scarstens committed Mar 6, 2020
0 parents commit 84a923f
Show file tree
Hide file tree
Showing 12 changed files with 1,673 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
67 changes: 67 additions & 0 deletions .circleci/config.yml
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: /.*/
40 changes: 40 additions & 0 deletions .circleci/phpcs.xml
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>
9 changes: 9 additions & 0 deletions .editorconfig
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea/
vendor/
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#### 1.0.0
* Initial release refactored from abstract_plugin_base
Loading

0 comments on commit 84a923f

Please sign in to comment.