-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
64 changed files
with
11,757 additions
and
2 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,18 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_style = tab | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = true | ||
|
||
[*.{neon,neon.dist}] | ||
indent_style = tab | ||
|
||
[**.{jshintrc,json,scss-lint,yml}] | ||
indent_style = space | ||
indent_size = 2 |
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,57 @@ | ||
# This file will be consumed by both the CI and the tests. | ||
# Some environment variables might not apply to one but might apply to the other: modify with care. | ||
|
||
# What version of WordPress we want to install and test against. | ||
# This has to be compatible with the `wp core download` command, see https://developer.wordpress.org/cli/commands/core/download/. | ||
WP_VERSION=latest | ||
|
||
# This is where, in the context of the CI, we'll install and configure WordPress. | ||
# See `.travis.yml` for more information. | ||
WP_ROOT_FOLDER=/tmp/wordpress | ||
|
||
# The WordPress installation will be served from the Docker container. | ||
# See `dev/docker/ci-compose.yml` for more information. | ||
WP_URL=http://localhost:8080 | ||
WP_DOMAIN=localhost:8080 | ||
|
||
# The credentials that will be used to access the site in acceptance tests | ||
# in methods like `$I->loginAsAdmin();`. | ||
WP_ADMIN_USERNAME=admin | ||
WP_ADMIN_PASSWORD=password | ||
|
||
WP_DB_PORT=4306 | ||
|
||
# The databse is served from the Docker `db` container. | ||
# See `dev/docker/ci-compose.yml` for more information. | ||
WP_TABLE_PREFIX=wp_ | ||
WP_DB_HOST=127.0.0.1:4306 | ||
WP_DB_NAME=wordpress | ||
WP_DB_USER=root | ||
WP_DB_PASSWORD= | ||
|
||
# The test databse is served from the Docker `db` container. | ||
# See `dev/docker/ci-compose.yml` for more information. | ||
WP_TEST_DB_HOST=127.0.0.1:4306 | ||
WP_TEST_DB_NAME=test | ||
WP_TEST_DB_USER=root | ||
WP_TEST_DB_PASSWORD= | ||
|
||
# We're using Selenium and Chrome for acceptance testing. | ||
# In CI context we're starting a Docker container to handle that. | ||
# See the `dev/docker/ci-compose.yml` file. | ||
CHROMEDRIVER_HOST=localhost | ||
CHROMEDRIVER_PORT=4444 | ||
|
||
# The URL of the WordPress installation from the point of view of the Chromedriver container. | ||
# Why not just use `wordpress`? While Chrome will accept an `http://wordpress` address WordPress | ||
# will not, we call the WordPress container with a seemingly looking legit URL and leverage the | ||
# lines that, in the `wp-config.php` file, will make it so that WordPress will use as its home | ||
# URL whatever URL we reach it with. | ||
# See the `dev/docker/wp-config.php` template for more information. | ||
WP_CHROMEDRIVER_URL="wp.test" | ||
|
||
# To run the tests let's force the background-processing lib to run in synchronous (single PHP thread) mode. | ||
TRIBE_NO_ASYNC=1 | ||
|
||
# We're using Docker to run the tests. | ||
USING_CONTAINERS=1 |
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,57 @@ | ||
# This file will be consumed by both the CI and the tests. | ||
# Some environment variables might not apply to one but might apply to the other: modify with care. | ||
|
||
# What version of WordPress we want to install and test against. | ||
# This has to be compatible with the `wp core download` command, see https://developer.wordpress.org/cli/commands/core/download/. | ||
WP_VERSION=latest | ||
|
||
# This is where, in the context of the CI, we'll install and configure WordPress. | ||
# See `.travis.yml` for more information. | ||
WP_ROOT_FOLDER=/var/www/html | ||
|
||
# The WordPress installation will be served from the Docker container. | ||
# See `dev/docker/ci-compose.yml` for more information. | ||
WP_URL=http://wordpress.test | ||
WP_DOMAIN=wordpress.test | ||
|
||
# The credentials that will be used to access the site in acceptance tests | ||
# in methods like `$I->loginAsAdmin();`. | ||
WP_ADMIN_USERNAME=admin | ||
WP_ADMIN_PASSWORD=password | ||
|
||
WP_DB_PORT=3306 | ||
|
||
# The databse is served from the Docker `db` container. | ||
# See `dev/docker/ci-compose.yml` for more information. | ||
WP_TABLE_PREFIX=wp_ | ||
WP_DB_HOST=db | ||
WP_DB_NAME=test | ||
WP_DB_USER=root | ||
WP_DB_PASSWORD=password | ||
|
||
# The test databse is served from the Docker `db` container. | ||
# See `dev/docker/ci-compose.yml` for more information. | ||
WP_TEST_DB_HOST=db | ||
WP_TEST_DB_NAME=test | ||
WP_TEST_DB_USER=root | ||
WP_TEST_DB_PASSWORD=password | ||
|
||
# We're using Selenium and Chrome for acceptance testing. | ||
# In CI context we're starting a Docker container to handle that. | ||
# See the `dev/docker/ci-compose.yml` file. | ||
CHROMEDRIVER_HOST=chrome | ||
CHROMEDRIVER_PORT=4444 | ||
|
||
# The URL of the WordPress installation from the point of view of the Chromedriver container. | ||
# Why not just use `wordpress`? While Chrome will accept an `http://wordpress` address WordPress | ||
# will not, we call the WordPress container with a seemingly looking legit URL and leverage the | ||
# lines that, in the `wp-config.php` file, will make it so that WordPress will use as its home | ||
# URL whatever URL we reach it with. | ||
# See the `dev/docker/wp-config.php` template for more information. | ||
WP_CHROMEDRIVER_URL=http://wordpress.test | ||
|
||
# To run the tests let's force the background-processing lib to run in synchronous (single PHP thread) mode. | ||
TRIBE_NO_ASYNC=1 | ||
|
||
# We're using Docker to run the tests. | ||
USING_CONTAINERS=1 |
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,6 @@ | ||
* text | ||
.* export-ignore | ||
composer.lock text -diff | ||
phpstan.* export-ignore | ||
phpunit.* export-ignore | ||
tests export-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,3 @@ | ||
files/ | ||
repo/ | ||
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,15 @@ | ||
# Change Log | ||
|
||
All notable changes to this project will be documented in this file. This project adhere to the [Semantic Versioning](http://semver.org/) standard. | ||
|
||
## [unreleased] Unreleased | ||
|
||
## [1.0.0] 2022-08-17 | ||
|
||
### Added | ||
|
||
- Initial version | ||
- Documentation | ||
- Automated tests | ||
|
||
[1.0.0]: https://github.com/stellarwp/schema/releases/tag/1.0.0 |
Oops, something went wrong.