test
This commit is contained in:
parent
515f79fd9c
commit
88c4b88d49
2 changed files with 5 additions and 4 deletions
|
@ -192,8 +192,8 @@ install_db() {
|
||||||
if [ $(mysql --user="$DB_USER" --password="$DB_PASS"$EXTRA --execute='show databases;' | grep ^$DB_NAME$) ]
|
if [ $(mysql --user="$DB_USER" --password="$DB_PASS"$EXTRA --execute='show databases;' | grep ^$DB_NAME$) ]
|
||||||
then
|
then
|
||||||
echo "Reinstalling will delete the existing test database ($DB_NAME)"
|
echo "Reinstalling will delete the existing test database ($DB_NAME)"
|
||||||
read -p 'Are you sure you want to proceed? [y/N]: ' DELETE_EXISTING_DB
|
# read -p 'Are you sure you want to proceed? [y/N]: ' DELETE_EXISTING_DB
|
||||||
recreate_db $DELETE_EXISTING_DB
|
recreate_db yes
|
||||||
else
|
else
|
||||||
create_db
|
create_db
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -16,7 +16,8 @@
|
||||||
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
|
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
|
||||||
"sirbrillig/phpcs-variable-analysis": "^2.11",
|
"sirbrillig/phpcs-variable-analysis": "^2.11",
|
||||||
"phpcsstandards/phpcsextra": "^1.1.0",
|
"phpcsstandards/phpcsextra": "^1.1.0",
|
||||||
"dms/phpunit-arraysubset-asserts": "^0.5.0"
|
"dms/phpunit-arraysubset-asserts": "^0.5.0",
|
||||||
|
"ml/json-ld": "^1.2"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"allow-plugins": true
|
"allow-plugins": true
|
||||||
|
@ -43,7 +44,7 @@
|
||||||
],
|
],
|
||||||
"test": [
|
"test": [
|
||||||
"composer install",
|
"composer install",
|
||||||
"tests/install-wp-tests.sh wordpress-test root wordpress-test test-db latest true",
|
"bin/install-wp-tests.sh wordpress-test root wordpress-test test-db latest true",
|
||||||
"phpunit"
|
"phpunit"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue