Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gitlab-ci
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
gitlab-ci
Commits
94df2ec5
Commit
94df2ec5
authored
5 years ago
by
Grzegorz Rola
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Recorded codeception"
This reverts commit
3e416206
parent
52e40e1e
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
gitlab-ci-1.2.yml
+12
-0
12 additions, 0 deletions
gitlab-ci-1.2.yml
gitlab-ci-free.yml
+6
-1
6 additions, 1 deletion
gitlab-ci-free.yml
gitlab-ci-shop.yml
+6
-1
6 additions, 1 deletion
gitlab-ci-shop.yml
sql/plugins.sql
+15
-0
15 additions, 0 deletions
sql/plugins.sql
with
39 additions
and
2 deletions
gitlab-ci-1.2.yml
+
12
−
0
View file @
94df2ec5
...
...
@@ -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
This diff is collapsed.
Click to expand it.
gitlab-ci-free.yml
+
6
−
1
View file @
94df2ec5
...
...
@@ -8,3 +8,8 @@ deploy to repository:
deploy to demo
:
when
:
on_success
update wpdesk plugins database
:
when
:
always
dependencies
:
-
deploy to repository
This diff is collapsed.
Click to expand it.
gitlab-ci-shop.yml
+
6
−
1
View file @
94df2ec5
...
...
@@ -8,3 +8,8 @@ deploy to shop:
deploy to demo
:
when
:
on_success
update wpdesk plugins database
:
when
:
always
dependencies
:
-
deploy to shop
This diff is collapsed.
Click to expand it.
sql/plugins.sql
0 → 100644
+
15
−
0
View file @
94df2ec5
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
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment