Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
459aa48
wp-env: no longer show error message twice (#20157)
noahtallen Feb 13, 2020
670cb4d
wp-env: Add custom ports to .wp-env.json (#20158)
noahtallen Feb 13, 2020
2fd52c0
wp-env: Fix issue where docker & wp had different URLs (#20228)
noahtallen Feb 14, 2020
9204794
wp-env: override generated file directory with environment var… (#20253)
noahtallen Feb 19, 2020
61b567c
Env: Add debug mode. (#20348)
epiqueras Feb 21, 2020
f7d182d
Env: Add support for local override files. (#20341)
epiqueras Feb 21, 2020
cf6cc4b
Env: Check for legacy installs and provide the option to delete them.…
epiqueras Feb 21, 2020
038d757
Env: Support wp-config.php overrides. (#20352)
epiqueras Feb 21, 2020
0c87245
@wordpress/env: Fix testsPath on local sources (#20353)
noisysocks Feb 24, 2020
c2ae55c
@wordpress/env: Use user with UID=33 to run WP CLI commands (#20403)
noisysocks Feb 24, 2020
35fee42
Remove !important override from Buttons block (#20433)
marekhrabe Feb 25, 2020
5abecf4
Env: Add support for ZIP URL sources. (#20426)
epiqueras Feb 26, 2020
4261c86
Block Library: Social Link: Fix label attribute type as string (#20468)
aduth Feb 26, 2020
f73f002
Block Library: Social Link: Escape generated class name (#20479)
aduth Feb 26, 2020
94f97bf
Block Library: Social Link: Use placeholder for default label (#20475)
aduth Feb 26, 2020
072e296
Block Editor: Typewriter: Skip entire component for IE (#20485)
aduth Feb 27, 2020
fef9da9
@wordpress/env: Set owner of wp-content to www-data (#20406)
noisysocks Feb 28, 2020
6a87dbc
Block Editor: Fix `LinkControl` text wrapping. (#20448)
epiqueras Feb 28, 2020
be4e01e
Editor: Shim meta attributes for early block registrations (#20544)
aduth Feb 28, 2020
84cc65b
Add missing accessibility attributes in the svg icons
donmhico Feb 28, 2020
42c7261
@wordpress/env: Fix accidental quotes in Site Title (#20520)
noisysocks Mar 2, 2020
42f2feb
Revert/top toolbar tab order (#20571)
ellatrix Mar 2, 2020
f918bd0
Block Editor: Add closing parenthesis on selector (#20507)
aduth Mar 2, 2020
1934a1c
[LatestPosts] Fixes the excerpt length (#20313)
draganescu Mar 2, 2020
75a77ce
Rich Text: Avoid activeElement focus call (#20594)
aduth Mar 2, 2020
56f8203
Block Library: Columns: Force 50% column width at mid-range viewport …
aduth Mar 2, 2020
f590677
Framework: Travis: Avoid skipping Puppeteer download (#20547)
aduth Feb 28, 2020
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
Prev Previous commit
Next Next commit
@wordpress/env: Fix testsPath on local sources (#20353)
* @wordpress/env: Fix testsPath on local sources

When using a local source (e.g. ~/path/to/wordpress), the tests
WordPress directory should be at ~/.wp-env/$hash/tests-wordpress instead
of ~/path/to/tests-wordpress.

* @wordpress/env: Show debug output from docker-compose stop in wp-env start
  • Loading branch information
noisysocks authored and jorgefilipecosta committed Mar 2, 2020
commit 0c87245d61f845b36b18edd11221efa9a3608cff
10 changes: 6 additions & 4 deletions packages/env/lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ module.exports = {
coreSource: includeTestsPath(
parseSourceString( config.core, {
workDirectoryPath,
} )
} ),
{ workDirectoryPath }
),
pluginSources: config.plugins.map( ( sourceString ) =>
parseSourceString( sourceString, {
Expand Down Expand Up @@ -277,18 +278,19 @@ function parseSourceString( sourceString, { workDirectoryPath } ) {
* property set correctly. Only the 'core' source requires a testsPath.
*
* @param {Source|null} source A source object.
* @param {Object} options
* @param {string} options.workDirectoryPath Path to the work directory located in ~/.wp-env.
* @return {Source|null} A source object.
*/
function includeTestsPath( source ) {
function includeTestsPath( source, { workDirectoryPath } ) {
if ( source === null ) {
return null;
}

return {
...source,
testsPath: path.resolve(
source.path,
'..',
workDirectoryPath,
'tests-' + path.basename( source.path )
),
};
Expand Down
2 changes: 1 addition & 1 deletion packages/env/lib/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module.exports = {
*
* @see https://github.com/WordPress/gutenberg/pull/20253#issuecomment-587228440
*/
await module.exports.stop( { spinner } );
await module.exports.stop( { spinner, debug } );

await checkForLegacyInstall( spinner );
const config = await initConfig( { spinner, debug } );
Expand Down