Run PHP 5 integration tests on WordPress 4.7, others on latest

[MAILPOET-2289]
This commit is contained in:
Ján Mikláš
2019-09-05 14:15:32 +02:00
committed by Jack Kitterhing
parent a5cbe98031
commit a4b32fa44f
2 changed files with 2 additions and 2 deletions

View File

@ -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: |

View File

@ -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