Skip to content

Commit

Permalink
Version 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
stevegrunwell committed Mar 26, 2020
2 parents fcce24b + 61a4745 commit 15c999b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v0.1.1] — 2020-03-26

### Fixed

* Manually apply the patch from https://github.com/wp-cli/scaffold-command/pull/255 ahead of official merger.

## [v0.1.0] — 2020-02-26

Initial public release of the library, with `bin/install-wp-tests.sh` based on [9b7fd85](https://github.com/wp-cli/scaffold-command/blob/9b7fd851b7696e54ee1be49b0709a6562dc510c9/templates/install-wp-tests.sh).

[Unreleased]: https://github.com/assertwell/wp-core-test-framework/compare/master...develop
[v0.1.0]: https://github.com/assertwell/wp-core-test-framework/releases/tag/v0.1.0
[v0.1.1]: https://github.com/assertwell/wp-core-test-framework/releases/tag/v0.1.1
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ To use it, find anywhere you're currently (or would be) referencing `bin/install
install:
- composer install --prefer-dist --no-interaction
- - bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
+ - bash vendor/bin/install-wp-tests.sh wordpress_test root '' localhost + $WP_VERSION
+ - bash vendor/bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
```

If your project already contains a `bin/install-wp-tests.sh` file, you may delete it from your repository.
3 changes: 2 additions & 1 deletion bin/install-wp-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ install_db() {
fi

# create database
if [ $(mysql -u "$DB_USER" -p"$DB_PASS" -e 'show databases;' | grep ^$DB_NAME$) ]
# Overwritten to incorporate https://github.com/wp-cli/scaffold-command/pull/255.
if [ $(mysql --user="$DB_USER" --password="$DB_PASS" --execute='show databases;' | grep ^$DB_NAME$) ]
then
echo "Reinstalling will delete the existing test database ($DB_NAME)"
read -p 'Are you sure you want to proceed? [y/N]: ' DELETE_EXISTING_DB
Expand Down

0 comments on commit 15c999b

Please sign in to comment.