Skip to content

Commit 5021b7e

Browse files
committed
Adapt tests and Phar
1 parent 6a238c6 commit 5021b7e

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"platform": {
1717
"php": "5.4"
1818
},
19+
"process-timeout": 7200,
1920
"sort-packages": true
2021
},
2122
"minimum-stability": "dev",

features/make-phar.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Feature: Check `utils/make-phar.php` output
2222
"""
2323
And STDOUT should be empty
2424

25-
When I try `grep '/dealerdirect\|[^/]/squizlabs\|/wimg' {PHAR_PATH}`
25+
When I try `grep '/dealerdirect\|[^/]/squizlabs(?!/PHP_CodeSniffer/wiki)\|/wimg' {PHAR_PATH}`
2626
Then the return code should be 1
2727
And STDOUT should be empty
2828
And STDERR should be empty

utils/make-phar.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ function get_composer_versions( $current_version ) {
163163
->ignoreVCS(true)
164164
->name('*.php')
165165
->in(WP_CLI_ROOT . '/php')
166+
->in(WP_CLI_BUNDLE_ROOT . '/php')
166167
->in(WP_CLI_VENDOR_DIR . '/mustache')
167168
->in(WP_CLI_VENDOR_DIR . '/rmccue/requests')
168169
->in(WP_CLI_VENDOR_DIR . '/composer')
@@ -191,9 +192,6 @@ function get_composer_versions( $current_version ) {
191192
} else {
192193
$finder
193194
->in(WP_CLI_VENDOR_DIR . '/wp-cli')
194-
->in(WP_CLI_VENDOR_DIR . '/wp-cli/wp-cli-tests/features/bootstrap') // These are required for scaffold-package-command.
195-
->in(WP_CLI_VENDOR_DIR . '/wp-cli/wp-cli-tests/features/steps')
196-
->in(WP_CLI_VENDOR_DIR . '/wp-cli/wp-cli-tests/features/extra')
197195
->in(WP_CLI_VENDOR_DIR . '/nb/oxymel')
198196
->in(WP_CLI_VENDOR_DIR . '/psr')
199197
->in(WP_CLI_VENDOR_DIR . '/seld')
@@ -291,7 +289,7 @@ function get_composer_versions( $current_version ) {
291289
set_file_contents( $phar, WP_CLI_ROOT . '/COMPOSER_VERSIONS', get_composer_versions( $current_version ) );
292290
set_file_contents( $phar, WP_CLI_ROOT . '/VERSION', $current_version );
293291

294-
$phar_boot = str_replace( WP_CLI_BASE_PATH, '', WP_CLI_ROOT . '/php/boot-phar.php' );
292+
$phar_boot = str_replace( WP_CLI_BASE_PATH, '', WP_CLI_BUNDLE_ROOT . '/php/boot-phar.php' );
295293
$phar->setStub( <<<EOB
296294
#!/usr/bin/env php
297295
<?php

0 commit comments

Comments
 (0)