Yukihiko Shinoda
14e5b76fad
Add PHP version 7.3, 7.4 into matrix on Travis CI
...
Since current PHP recommended version is 7.3+.
@see https://wordpress.org/support/article/requirements/
2020-06-18 23:04:32 +09:00
Yukihiko Shinoda
3423ee8dad
Add expected matrix for .travis.yml
...
Add PHP version 7.3, 7.4 into matrix build
Since current PHP recommended version is 7.3+.
@see https://wordpress.org/support/article/requirements/
2020-06-18 23:04:12 +09:00
Viktor Szépe
06b059a1f6
WP_CORE_DIR does not need a trailing slash
2020-06-06 19:44:04 +02:00
Alain Schlesser
8f9ae0ae13
Merge pull request #265 from janw-me/master
...
Updated minimum required PHP version to 5.6
2020-06-04 19:41:01 +02:00
Jan Willem Oostendorp
4f9750d8ce
Updated minimum required PHP version to 5.6
2020-06-04 19:37:58 +02:00
Alain Schlesser
8d9d8ad74e
Merge pull request #264 from janw-me/master
2020-06-04 18:56:17 +02:00
Jan Willem Oostendorp
a3eacdd25b
Merge branch 'master' of github.com:wp-cli/scaffold-command
2020-06-04 17:55:53 +02:00
Jan Willem Oostendorp
74d21218db
Updated phpCS version to 5.6, this was done for all bundled commands at once
2020-06-04 17:41:29 +02:00
Alain Schlesser
04fb9d00fd
Merge pull request #242 from zzap/patch-1
2020-05-29 12:01:47 +02:00
Alain Schlesser
2bcc57e8cb
Adapt functional test to account for changed theme function
2020-05-29 11:47:44 +02:00
Alain Schlesser
fd4649254d
Merge branch 'master' into patch-1
2020-05-29 11:39:19 +02:00
Alain Schlesser
b639fe3a2e
Merge pull request #262 from wp-cli/replicate-258
...
Update plugin/theme test scaffolding
2020-05-28 18:06:11 +02:00
schlessera
9ed21af971
Update file(s) from wp-cli/.github
2020-05-26 08:59:04 +00:00
schlessera
e8825ebe85
Update file(s) from wp-cli/.github
2020-05-26 06:15:26 +00:00
Alain Schlesser
548750fa6e
Replicate the changes from PR #258
2020-05-06 07:41:06 +02:00
Alain Schlesser
d0c8142fcc
Merge pull request #260 from wp-cli/bump-travis-server-to-xenial
...
Bump Travis CI OS from `trusty` to `xenial`
2020-04-18 08:33:33 +02:00
Alain Schlesser
241f1a3a62
Use dev-master for wp-cli/wp-cli
2020-04-18 07:27:36 +02:00
Alain Schlesser
69cdd63226
Require WP 4.6 for underscores caffolding
2020-04-18 07:16:34 +02:00
Alain Schlesser
c0db819b72
Merge pull request #259 from wp-cli/enforce-php74-compat
...
Enforce PHP 7.4 compatibility in Travis CI
2020-04-13 10:58:52 +02:00
Alain Schlesser
48b595dfec
Merge pull request #254 from wp-cli/fix-travis-sudo-warning
...
Fix Travis CI `sudo` warning
2020-04-07 22:55:43 +07:00
Alain Schlesser
5eeb4a0bf9
Merge pull request #255 from stevegrunwell/fix/install-tests-with-empty-password
...
Use longer option names in `install_db()` to avoid stalling CIs
2020-04-01 21:39:34 +07:00
Steve Grunwell
2172d82585
Use the longer option names while creating the database
...
Since some platforms (such as Travis CI) use empty passwords for the database user, passing an empty string for `$DB_PASS` can result in a TTY prompt, e.g.:
```
$ DB_USER=someuser DB_PASS="" mysql -u "$DB_USER" -p"$DB_PASS" -e 'show databases;'
Enter password:
```
This commit rewrites the call to use the longer option names (`--user`, `--password`, and `--execute`) to prevent empty passwords from being interpreted as "please ask me to provide my password in an interactive prompt."
2020-03-26 13:51:43 -04:00
Alain Schlesser
4c990cd89b
Merge pull request #250 from kagg-design/dir-magic-constant
...
Code Modernization: Replace `dirname( __FILE__ )` calls with `__DIR__` magic constant.
2020-02-19 11:49:49 +01:00
kagg-design
b6357ed389
Remove curly braces for consistency.
2020-02-19 09:42:26 +02:00
Alain Schlesser
4834680db8
Merge pull request #249 from tedsecretsource/228-simplify-test-rigging-creation
...
Fixed 228 - init script can be used repeatedly
2020-02-14 10:00:19 +01:00
Ted Stresen-Reuter
6363dbee24
Add parens to match actual script output
...
Added parentheses around the database name in the test to make it match the actual output from the script.
2020-02-13 19:09:16 +00:00
Ted Stresen-Reuter
59f9cde26f
Make test assertion more verbose
...
Adding more of the expected output to the assertion to reduce the possibility of false positives.
Co-Authored-By: Alain Schlesser <alain.schlesser@gmail.com>
2020-02-13 19:05:42 +00:00
Ted Stresen-Reuter
b3243d754b
Make the test more verbose
...
Adding more of the expected output to the assertion to reduce the possibility of false positives.
Co-Authored-By: Alain Schlesser <alain.schlesser@gmail.com>
2020-02-13 19:05:17 +00:00
Ted Stresen-Reuter
844dd7684c
Add test with negative response to prompt
...
Added a test with a negative response to the prompt to reinstall the database.
2020-02-11 18:35:09 +00:00
Ted Stresen-Reuter
7462c52599
Modify existing test for this feature
...
Modified one of the existing tests to test this feature. Specifically, this script should exit with return code 0, with text in both STDERR (the read prompt) and STDOUT (results of selected actions).
2020-02-10 15:26:26 +00:00
kagg-design
fcf38f11f4
Code Modernization: Replace dirname( __FILE__ )
calls with __DIR__
magic constant.
...
Follow to the commit in WP Core e72fff9cef/wp-tests-config-sample.php
As previous version of wp-tests-config-sample.php can be downloaded with previous WP Core version, I keep replacement of `dirname( __FILE__ )`, and add replacement of `__DIR__`.
2020-02-07 09:11:33 +02:00
Ted Stresen-Reuter
cfc14a40cd
Refactor to improve legibility
...
Simplified the condition for whether or not to recreate the database by moving the code into its own functions.
2020-02-06 09:12:30 +00:00
Ted Stresen-Reuter
0f05f51f26
Add test for checking existence of database
...
Add test for checking whether the database already exists, and how to handle it
2020-02-05 16:53:51 +00:00
Ted Stresen-Reuter
39ffec66d0
Fix issue with mysql not getting creds
...
Fix an issue in which the mysql command line was not receiving or understanding the credentials being passed in
2020-02-05 16:52:53 +00:00
Ted Stresen-Reuter
2b4a9bdbea
Add missing creds
...
Added the missing credentials in the mysql call. Also changed the prompt in the drop db confirm to be something people are more used to seeing. Added an else case to handle instances in which the database doesn’t exists.
2020-01-30 21:50:02 +00:00
Ted Stresen-Reuter
9fbaab9c9b
Make confirmation test stricter
...
Make the confirmation on whether or not to drop the existing database test for fewer possibilities (just y, Y, yes, Yes, and mixed case equivalents).
2020-01-29 09:23:00 +00:00
Ted Stresen-Reuter
ce73a1f368
Added a condition so we don’t clobber existing DB
...
Added a condition to test for the existance of an existing DB, and then asking for permission before deleting it.
2020-01-28 09:12:18 +00:00
Ted Stresen-Reuter
0328044ba9
Fixed 228 - init script can be used repeatedly
...
Fixed in issue in which the init script would fail if the database was already created.
2020-01-24 14:29:01 +00:00
Alain Schlesser
ee48bb10bc
Include --ignore-externals
when running svn co ( #243 )
...
Include `--ignore-externals` when running svn co
2019-11-25 14:26:31 +01:00
Daniel Bachhuber
31a756bf2f
Merge branch 'master' into install-wp-tests-ignore-externals
2019-11-25 04:48:42 -08:00
Alain Schlesser
e4f9b922d7
Fix Travis TLS handshake error ( #245 )
...
Fix Travis TLS handshake error
2019-11-25 11:53:23 +01:00
Alain Schlesser
28950dd4ed
Skip network scaffolding tests on WP versions with custom settings file
2019-11-25 11:39:41 +01:00
Alain Schlesser
e282ba3fcc
Only run underscores tests on PHP 5.6+
2019-11-25 10:38:33 +01:00
Daniel Bachhuber
777d54cb0f
Include --ignore-externals
when running svn co
...
The SVN externals aren't necessary in this context because we only need the test suite data
2019-11-22 14:00:10 -08:00
Milana Cap
a6f24c3053
Scaffold block support for child theme.
2019-11-13 20:16:23 +01:00
Alain Schlesser
1d8479686e
Update README.md
2019-11-12 12:32:15 +01:00
Alain Schlesser
8128224aff
Add preliminary PHP 7.4 testing ( #240 )
...
Add preliminary PHP 7.4 testing
2019-11-12 04:20:54 +01:00
Alain Schlesser
5134e3a078
Required PHP version header ( #238 )
...
Required PHP version header
2019-11-12 04:07:29 +01:00
Milana Cap
0d54840e2f
Required PHP version
2019-09-16 12:42:16 +02:00
Alain Schlesser
16cc3b4fdc
Merge pull request #236 from burhandodhy/master
...
Fix deprecated whitelist code flag
2019-08-25 09:02:30 +02:00