Run PHP 5 integration tests on WordPress 4.7, others on latest
[MAILPOET-2289]
This commit is contained in:
committed by
Jack Kitterhing
parent
a5cbe98031
commit
a4b32fa44f
@ -122,7 +122,7 @@ jobs:
|
||||
command: echo 127.0.0.1 mailpoet.loc | sudo tee -a /etc/hosts
|
||||
- run:
|
||||
name: "Set up test environment"
|
||||
command: source ./.circleci/setup.bash && setup php5
|
||||
command: source ./.circleci/setup.bash && setup php5 4.7
|
||||
- run:
|
||||
name: "PHP Integration tests"
|
||||
command: |
|
||||
|
@ -23,7 +23,7 @@ function setup {
|
||||
|
||||
# Set up WordPress
|
||||
mysql -h 127.0.0.1 -u root -e "create database wordpress"
|
||||
wp core download $wp_cli_wordpress_path $wp_cli_allow_root
|
||||
wp core download $wp_cli_wordpress_path $wp_cli_allow_root --version=${2:-latest}
|
||||
|
||||
# Generate `wp-config.php` file with debugging enabled
|
||||
echo "define(\"WP_DEBUG\", true);" | wp core config --dbname=wordpress --dbuser=root --dbhost=127.0.0.1 --extra-php $wp_cli_wordpress_path $wp_cli_allow_root
|
||||
|
Reference in New Issue
Block a user