From a4b32fa44f9d6707f97a2a3b5fd55bc6d59c1cea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ja=CC=81n=20Mikla=CC=81s=CC=8C?= Date: Thu, 5 Sep 2019 14:15:32 +0200 Subject: [PATCH] Run PHP 5 integration tests on WordPress 4.7, others on latest [MAILPOET-2289] --- .circleci/config.yml | 2 +- .circleci/setup.bash | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2ae211bfec..3496f5b53b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: | diff --git a/.circleci/setup.bash b/.circleci/setup.bash index a50f38d301..f18aa02c30 100644 --- a/.circleci/setup.bash +++ b/.circleci/setup.bash @@ -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