Docker configuration refactor. Debugging needed.

This commit is contained in:
Geoff Taylor
2019-07-23 19:38:53 -04:00
parent c7c2db51cc
commit b16a195243
22 changed files with 1366 additions and 218 deletions
+15 -14
View File
@@ -1,6 +1,6 @@
paths:
tests: tests
output: tests/_output
log: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
@@ -10,6 +10,7 @@ settings:
memory_limit: 1024M
coverage:
enabled: true
remote: true
whitelist:
include:
- wp-graphql-woocommerce.php
@@ -32,26 +33,26 @@ params:
modules:
config:
WPDb:
dsn: 'mysql:host=%TEST_SITE_DB_HOST%;dbname=%TEST_SITE_DB_NAME%'
user: '%TEST_SITE_DB_USER%'
password: '%TEST_SITE_DB_PASSWORD%'
dsn: 'mysql:host=%TEST_DB_HOST%;dbname=%DB_NAME%'
user: '%DB_USER%'
password: '%DB_PASSWORD%'
dump: 'tests/_data/dump.sql'
#import the dump before the tests; this means the test site database will be repopulated before the tests.
populate: true
# re-import the dump between tests; this means the test site database will be repopulated between the tests.
cleanup: true
waitlock: 0
url: '%TEST_SITE_WP_URL%'
url: '%WP_URL%'
urlReplacement: true #replace the hardcoded dump URL with the one above
tablePrefix: '%TEST_SITE_TABLE_PREFIX%'
tablePrefix: '%WP_TABLE_PREFIX%'
WPBrowser:
url: '%TEST_SITE_WP_URL%'
adminUsername: '%TEST_SITE_ADMIN_USERNAME%'
adminPassword: '%TEST_SITE_ADMIN_PASSWORD%'
adminPath: '%TEST_SITE_WP_ADMIN_PATH%'
url: '%WP_URL%'
adminUsername: '%ADMIN_USERNAME%'
adminPassword: '%ADMIN_PASSWORD%'
adminPath: '%ADMIN_PATH%'
REST:
depends: WPBrowser
url: '%TEST_SITE_WP_URL%'
url: '%WP_URL%'
WPFilesystem:
wpRootFolder: '%WP_ROOT_FOLDER%'
plugins: '/wp-content/plugins'
@@ -59,14 +60,14 @@ modules:
themes: '/wp-content/themes'
uploads: '/wp-content/uploads'
WPLoader:
wpRootFolder: "%WP_ROOT_FOLDER%"
wpRootFolder: "%TEST_WP_ROOT_FOLDER%"
dbName: "%TEST_DB_NAME%"
dbHost: "%TEST_DB_HOST%"
dbUser: "%TEST_DB_USER%"
dbPassword: "%TEST_DB_PASSWORD%"
tablePrefix: "%TEST_TABLE_PREFIX%"
domain: "%TEST_SITE_WP_DOMAIN%"
adminEmail: "%TEST_SITE_ADMIN_EMAIL%"
domain: "%TEST_WP_DOMAIN%"
adminEmail: "%TEST_ADMIN_EMAIL%"
title: "Test"
plugins: ['woocommerce/woocommerce.php', 'wp-graphql/wp-graphql.php', 'wp-graphql-woocommerce/wp-graphql-woocommerce.php']
activatePlugins: ['woocommerce/woocommerce.php', 'wp-graphql/wp-graphql.php', 'wp-graphql-woocommerce/wp-graphql-woocommerce.php']