Skip to content
Merged
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
3 changes: 0 additions & 3 deletions .coveralls.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .dockerignore

This file was deleted.

21 changes: 13 additions & 8 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,30 @@
# editorconfig.org

# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/
# https://developer.wordpress.org/coding-standards/wordpress-coding-standards/

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab

[*.txt]
trim_trailing_whitespace = false
[*.json]
indent_size = 2

[*.{md,json,yml}]
[*.md]
trim_trailing_whitespace = false
indent_style = space
indent_size = 2

[*.json]
indent_style = tab
[*.txt]
trim_trailing_whitespace = false

[*.{yml,yaml}]
insert_final_newline = false
quote_type = single
indent_style = space
indent_size = 2
45 changes: 14 additions & 31 deletions .env.dist
Original file line number Diff line number Diff line change
@@ -1,38 +1,21 @@
DB_NAME=wordpress
DB_HOST=app_db
DB_USER=wordpress
DB_PASSWORD=wordpress
WP_TABLE_PREFIX=wp_
WP_URL=http://localhost
WP_DOMAIN=localhost
ADMIN_EMAIL=admin@example.com
ADMIN_USERNAME=admin
ADMIN_PASSWORD=password
ADMIN_PATH=/wp-admin

TEST_DB_NAME=wptests
TEST_DB_HOST=127.0.0.1
# Codeception + wp-browser configuration. Change these if you need tests to run
# against a different host (for example, a locally provisioned WordPress).
TEST_DB_NAME=tests-wordpress
TEST_DB_HOST=tests-mysql
TEST_DB_USER=root
TEST_DB_PASSWORD=root
TEST_DB_PASSWORD=password
TEST_WP_TABLE_PREFIX=wp_
TEST_WP_DOMAIN=tests-wordpress
TEST_WP_URL=http://tests-wordpress
TEST_WP_ROOT_FOLDER=/var/www/html

SKIP_DB_CREATE=false
TEST_WP_ROOT_FOLDER=/tmp/wordpress
TEST_ADMIN_EMAIL=admin@wp.test
TEST_ADMIN_USERNAME=admin
TEST_ADMIN_PASSWORD=password
TEST_ADMIN_PATH=/wp-admin

TESTS_DIR=tests
TESTS_OUTPUT=tests/_output
TESTS_DATA=tests/_data
TESTS_SUPPORT=tests/_support
TESTS_ENVS=tests/_envs

CORE_BRANCH=develop
SKIP_TESTS_CLEANUP=1
SUITES=wpunit

WORDPRESS_DB_HOST=${DB_HOST}
WORDPRESS_DB_USER=${DB_USER}
WORDPRESS_DB_PASSWORD=${DB_PASSWORD}
WORDPRESS_DB_NAME=${DB_NAME}
# Whether to install PCOV in the tests CLI.
# PCOV_ENABLED=1

# Used to install the premium GF Addons in the CLI script.
# GF_KEY=
51 changes: 38 additions & 13 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,19 +1,44 @@
/.github export-ignore
# Automatically normalize line endings.
* text=auto

# Files and directories to exclude from the generated archive (export-ignore).
# These will be omitted from GitHub/Packagist ZIP archives to keep packages small.
/bin export-ignore
/docker export-ignore
/docs export-ignore
/phpstan export-ignore
/plugin-build export-ignore
/tests export-ignore
/.coveralls.yml export-ignore
/.distignore export-ignore
/.dockerignore export-ignore
/.editorconfig
/.env.dist export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.phpcs.xml.dist export-ignore
/codeception.dist.yml export-ignore
/composer.lock export-ignore
/docker-compose.yml export-ignore

# Tests and test fixtures
/tests/ export-ignore
codecov.yml export-ignore
codeception.dist.yml export-ignore

# PHP unit / static analysis configs.
/phpcs.xml.dist export-ignore
/phpstan.neon.dist export-ignore
/phpunit.xml.dist export-ignore

# Continuous Integration configs.
/.github export-ignore
/.wordpress-org export-ignore

# Node and build artifacts.
package.json export-ignore
package-lock.json export-ignore
/composer.lock export-ignore
/webpack.config.js export-ignore

# Don't include the dotfiles for distribution.
/.* export-ignore

# Mark docs as documentation for GitHub Linguist.
/docs/ linguist-documentation export-ignore
/CHANGELOG.md linguist-documentation export-ignore
/CONTRIBUTING.md linguist-documentation export-ignore
/SECURITY.md linguist-documentation export-ignore

# Keep license and readme files.
/LICENSE.md linguist-documentation
/README.md linguist-documentation
/README.txt linguist-documentation
65 changes: 0 additions & 65 deletions .github/workflows/code-quality.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/code-standard.yml

This file was deleted.

Loading
Loading