Skip to content
Snippets Groups Projects
Commit 94df2ec5 authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

Revert "Recorded codeception"

This reverts commit 3e416206
parent 52e40e1e
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@ stages:
- tests
- pre-deploy
- deploy
- post-deploy
include:
- project: 'wpdesk/gitlab-ci'
......@@ -240,6 +241,16 @@ deploy to repository:
variables:
- $IS_LIBRARY
update wpdesk plugins database:
image: wpdesknet/phpunit-woocommerce:3-0
stage: post-deploy
when: manual
only:
- tags
script:
- WP_TESTED_UP=`grep 'Tested up to' *.php | grep -oE '([0-9]+.?)+'`
- WC_TESTED_UP=`grep 'WC tested up to' *.php | grep -oE '([0-9]+.?)+'`
- mysql ${WPDESK_PLUGINS_DATABASE} -e "insert into wpdesk_plugin_deploys (project_name, plugin_version, wp_tested_up, wc_tested_up) values ( '${CI_PROJECT_NAME}', '${CI_COMMIT_REF_NAME}', '${WP_TESTED_UP}', '${WC_TESTED_UP}' )"
library:
image: wpdesknet/phpunit-woocommerce:3-0
......@@ -262,3 +273,4 @@ library:
only:
variables:
- $IS_LIBRARY
......@@ -8,3 +8,8 @@ deploy to repository:
deploy to demo:
when: on_success
update wpdesk plugins database:
when: always
dependencies:
- deploy to repository
......@@ -8,3 +8,8 @@ deploy to shop:
deploy to demo:
when: on_success
update wpdesk plugins database:
when: always
dependencies:
- deploy to shop
create table wpdesk_plugin_deploys (
deploy_id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
deploy_time timestamp NOT NULL,
project_name varchar(50) NOT NULL,
plugin_version varchar(20) NOT NULL,
wp_tested_up varchar(20) NOT NULL,
wc_tested_up varchar(20) NOT NULL,
INDEX(project_name),
INDEX(project_name, deploy_time)
);
create or replace view wpdesk_plugin_deploys_current as
select project_name, plugin_version, wp_tested_up, wc_tested_up, deploy_time
from wpdesk_plugin_deploys as d1
where deploy_id = (select max(deploy_id) from wpdesk_plugin_deploys as d2 where d1.project_name = d2.project_name);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment