-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update: openpub with related items + docs
- Loading branch information
Edwin Siebel
committed
Oct 4, 2018
1 parent
a66ae64
commit 9a678ff
Showing
220 changed files
with
77,248 additions
and
1,143 deletions.
There are no files selected for viewing
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,23 @@ | ||
# This file is for unifying the coding style for different editors and IDEs | ||
# editorconfig.org | ||
|
||
# WordPress Coding Standards | ||
# https://make.wordpress.org/core/handbook/coding-standards/ | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
indent_style = tab | ||
space_around_brackets = true | ||
indent_size = 4 | ||
|
||
[{.jshintrc,*.json,*.yml}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[{*.txt,wp-config-sample.php}] | ||
end_of_line = crlf |
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 @@ | ||
gulpfile.js |
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,18 @@ | ||
{ | ||
"parser": "espree", | ||
"ecmaFeatures": {}, | ||
"parserOptions": { | ||
"sourceType": "module" | ||
}, | ||
"extends": "eslint:recommended", | ||
"env": { | ||
"browser": true, | ||
"jquery": true, | ||
"es6": true, | ||
"amd": true | ||
}, | ||
"rules": { | ||
"no-undef": 0, | ||
"no-unused-vars": 0 | ||
} | ||
} |
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 |
---|---|---|
|
@@ -9,9 +9,38 @@ pipelines: | |
- composer | ||
- vendor-directory | ||
script: | ||
- apt-get update && apt-get install -y git openssh-server | ||
- composer install --no-interaction --no-progress --prefer-dist --ignore-platform-reqs | ||
- ./vendor/bin/phpunit --testsuite "OWC OpenPub Base Plugin Test Suite" | ||
- ./vendor/bin/phpunit --testsuite "Unit Test Suite" | ||
- step: | ||
name: Deploy docs to production | ||
caches: | ||
- composer | ||
- vendor-directory | ||
deployment: production | ||
script: | ||
- apt-get update && apt-get install -y git openssh-server rsync | ||
- ssh [email protected] mkdir -p /data/www/docs.openwebconcept.nl/htdocs/plugins/openpub && rsync -avH ./docs/* -e "ssh" [email protected]:/data/www/docs.openwebconcept.nl/htdocs/plugins/openpub | ||
|
||
# - step: | ||
# name: integration test | ||
# caches: | ||
# - composer | ||
# - vendor-directory | ||
# script: | ||
# #- service mysql start | ||
# - composer install --no-interaction --no-progress --prefer-dist --ignore-platform-reqs | ||
# #- chmod +x bin/install-wp-tests.sh | ||
# #- bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 latest | ||
# #- ./vendor/bin/phpunit --testsuite "Integration Test" | ||
|
||
definitions: | ||
caches: | ||
vendor-directory: vendor | ||
vendor-directory: vendor | ||
|
||
services: | ||
mysql: | ||
image: mysql:5.7 | ||
environment: | ||
MYSQL_DATABASE: 'wordpress_test' | ||
MYSQL_ROOT_PASSWORD: 'root' |
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 |
---|---|---|
@@ -1,49 +1,49 @@ | ||
{ | ||
"name": "plugin/openpub-base", | ||
"description": "OpenPub base plugin", | ||
"homepage": "https://www.yardinternet.nl", | ||
"authors": [ | ||
{ | ||
"name": "Yard Internet", | ||
"email": "[email protected]" | ||
"email": "[email protected]", | ||
"homepage": "https://www.yardinternet.nl" | ||
} | ||
], | ||
"type": "wordpress-plugin", | ||
"repositories": [ | ||
{ | ||
"type": "composer", | ||
"url": "https://wpackagist.org" | ||
}, | ||
{ | ||
"type": "vcs", | ||
"url": "[email protected]:yardinternet/phpcs.git" | ||
} | ||
], | ||
"require": { | ||
"php": ">=7.0", | ||
"wpackagist-plugin/elasticpress": "2.*" | ||
}, | ||
"require-dev": { | ||
"mockery/mockery": "~1.0", | ||
"phpunit/phpunit": "~6.0", | ||
"mockery/mockery": "1.0.*", | ||
"phpunit/phpunit": "~7.0", | ||
"10up/wp_mock": "dev-master", | ||
"yard/phpcs":"dev-master", | ||
"phpmd/phpmd": "@stable" | ||
"phpdocumentor/phpdocumentor": "2.*", | ||
"squizlabs/php_codesniffer": "^3.0.2" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"OWC\\OpenPub\\Base\\": "./src/Base" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"OWC\\OpenPub\\Base\\": "./src/Base", | ||
"OWC\\OpenPub\\Base\\Tests\\": "./tests" | ||
} | ||
}, | ||
"scripts": { | ||
"lint": "clear && ./vendor/bin/phpcs .", | ||
"unit": "clear && ./vendor/bin/phpunit --testsuite 'Unit Test' --colors=always", | ||
"unit-cover": "clear && ./vendor/bin/phpunit --testsuite 'Unit Test' --colors=always --coverage-html ./tests/coverage", | ||
"integration": "clear && ./vendor/bin/phpunit --testsuite 'Integration Test' --colors=always", | ||
"unit": "clear && ./vendor/bin/phpunit --testsuite 'Unit Test Suite' --colors=always", | ||
"unit-coverage": "clear && ./vendor/bin/phpunit --testsuite 'Unit Test Suite' --colors=always --coverage-html ./tests/coverage", | ||
"integration": "clear && ./vendor/bin/phpunit --testsuite 'Integration Test Suite' --colors=always", | ||
"test": [ | ||
"@unit", | ||
"@integration" | ||
] | ||
], | ||
"docs": "./vendor/bin/phpdoc -d ./src/Base -t ./docs" | ||
} | ||
} |
Oops, something went wrong.