Skip to content

Commit

Permalink
Update: openpub with related items + docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Edwin Siebel committed Oct 4, 2018
1 parent a66ae64 commit 9a678ff
Show file tree
Hide file tree
Showing 220 changed files with 77,248 additions and 1,143 deletions.
23 changes: 23 additions & 0 deletions .editorconfig
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
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gulpfile.js
18 changes: 18 additions & 0 deletions .eslintrc
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
}
}
33 changes: 31 additions & 2 deletions bitbucket-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
32 changes: 16 additions & 16 deletions composer.json
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"
}
}
Loading

0 comments on commit 9a678ff

Please sign in to comment.