Configure Woo Subscriptions versions for Circle CI
[MAILPOET-3471]
This commit is contained in:
committed by
Veljko V
parent
01ef570c42
commit
726cbf4679
@ -169,6 +169,10 @@ jobs:
|
|||||||
name: Group acceptance tests to run in parallel
|
name: Group acceptance tests to run in parallel
|
||||||
command: |
|
command: |
|
||||||
./do test:acceptance-group-tests
|
./do test:acceptance-group-tests
|
||||||
|
- run:
|
||||||
|
name: Download additional WP Plugins for tests
|
||||||
|
command: |
|
||||||
|
./do download:woo-commerce-subscriptions-zip 3.0.14
|
||||||
- run:
|
- run:
|
||||||
name: Dump tests ENV variables for acceptance tests
|
name: Dump tests ENV variables for acceptance tests
|
||||||
command: |
|
command: |
|
||||||
@ -296,6 +300,9 @@ jobs:
|
|||||||
wordpress_image_version:
|
wordpress_image_version:
|
||||||
type: string
|
type: string
|
||||||
default: ''
|
default: ''
|
||||||
|
woo_subscriptions_version:
|
||||||
|
type: string
|
||||||
|
default: ''
|
||||||
environment:
|
environment:
|
||||||
MYSQL_COMMAND: << parameters.mysql_command >>
|
MYSQL_COMMAND: << parameters.mysql_command >>
|
||||||
MYSQL_IMAGE_VERSION: << parameters.mysql_image_version >>
|
MYSQL_IMAGE_VERSION: << parameters.mysql_image_version >>
|
||||||
@ -306,6 +313,12 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: "Set up virtual host"
|
name: "Set up virtual host"
|
||||||
command: echo 127.0.0.1 mailpoet.loc | sudo tee -a /etc/hosts
|
command: echo 127.0.0.1 mailpoet.loc | sudo tee -a /etc/hosts
|
||||||
|
- when:
|
||||||
|
condition: << parameters.woo_subscriptions_version >>
|
||||||
|
steps:
|
||||||
|
- run:
|
||||||
|
name: Download additional WP Plugins
|
||||||
|
command: ./do download:woo-commerce-subscriptions-zip << parameters.woo_subscriptions_version >>
|
||||||
- run:
|
- run:
|
||||||
name: Run acceptance tests
|
name: Run acceptance tests
|
||||||
command: |
|
command: |
|
||||||
@ -590,11 +603,13 @@ workflows:
|
|||||||
- acceptance_tests:
|
- acceptance_tests:
|
||||||
<<: *slack-fail-post-step
|
<<: *slack-fail-post-step
|
||||||
name: acceptance_latest
|
name: acceptance_latest
|
||||||
|
woo_subscriptions_version: latest
|
||||||
requires:
|
requires:
|
||||||
- build
|
- build
|
||||||
- acceptance_tests:
|
- acceptance_tests:
|
||||||
<<: *slack-fail-post-step
|
<<: *slack-fail-post-step
|
||||||
name: acceptance_oldest
|
name: acceptance_oldest
|
||||||
|
woo_subscriptions_version: 3.0.14
|
||||||
mysql_command: --max_allowed_packet=100M
|
mysql_command: --max_allowed_packet=100M
|
||||||
mysql_image_version: 5.5-ram
|
mysql_image_version: 5.5-ram
|
||||||
wordpress_image_version: wp-5.3_php7.1_20210129.1
|
wordpress_image_version: wp-5.3_php7.1_20210129.1
|
||||||
|
@ -38,7 +38,7 @@ class GithubClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function getRelease($tag = null) {
|
private function getRelease($tag = null) {
|
||||||
$path = 'releases/' . ($tag ? "tags/$tag" : 'latest');
|
$path = 'releases/' . ($tag && $tag !== 'latest' ? "tags/$tag" : 'latest');
|
||||||
$response = $this->httpClient->get($path);
|
$response = $this->httpClient->get($path);
|
||||||
return json_decode($response->getBody()->getContents(), true);
|
return json_decode($response->getBody()->getContents(), true);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user