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
b5ebf654
Verified
Commit
b5ebf654
authored
9 months ago
by
Bartek Jaskulski
Browse files
Options
Downloads
Patches
Plain Diff
feat: add support for wpdesk/wp-init
Signed-off-by:
Bart Jaskulski
<
bjaskulski@protonmail.com
>
parent
4ff215ab
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
gitlab-ci-1.2.yml
+1
-1
1 addition, 1 deletion
gitlab-ci-1.2.yml
includes/prepare.yml
+4
-0
4 additions, 0 deletions
includes/prepare.yml
includes/tests/version-cohesion.yml
+8
-2
8 additions, 2 deletions
includes/tests/version-cohesion.yml
with
13 additions
and
3 deletions
gitlab-ci-1.2.yml
+
1
−
1
View file @
b5ebf654
variables
:
WPDESK_CI_VERSION
:
"
2024.
09.25
"
WPDESK_CI_VERSION
:
"
2024.
10.08
"
MYSQL_ROOT_PASSWORD
:
"
mysql"
MYSQL_DATABASE
:
"
wptest"
MYSQL_USER
:
"
mysql"
...
...
This diff is collapsed.
Click to expand it.
includes/prepare.yml
+
4
−
0
View file @
b5ebf654
...
...
@@ -6,6 +6,8 @@ prepare prefixed vendor:
-
assets
-
vendor
-
vendor_prefixed
# wpdesk/wp-init default cache directory for plugin.php file
-
generated
tags
:
-
vendor
stage
:
prepare-vendor
...
...
@@ -19,6 +21,8 @@ prepare prefixed vendor:
-
php --version
script
:
-
composer install
# For plugins using wpdesk/wp-init, but only after v0.10. This has to be changed later, when library hits v1
-
composer show -q wpdesk/wp-init ^0.10 >/dev/null 2>&1 && vendor/bin/wpinit ./flexible-subscriptions.php ./generated/ || echo "Not using wpdesk/wp-init"
-
rm auth.json
prepare npm assets
:
...
...
This diff is collapsed.
Click to expand it.
includes/tests/version-cohesion.yml
+
8
−
2
View file @
b5ebf654
...
...
@@ -12,8 +12,14 @@
-
SEMVER_PART="(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?"
-
echo "Checking plugin version in plugin header"
-
if [[ "$(grep -h 'Version:' *.php | grep -oP $SEMVER_REGEX)" != "$PLUGIN_VERSION" ]]; then exit 1; fi
-
echo "Checking plugin version in variable"
-
if [[ "$(grep -h '$plugin_version' *.php | grep -oP $SEMVER_REGEX)" != "$PLUGIN_VERSION" ]]; then exit 1; fi
-
|
# Check for $plugin_version variable in file only for plugin-flow plugins. wpdesk/wp-init doesn't use such identifier.
if ! composer show -q wpdesk/wp-init; then
echo "Checking plugin version in variable";
if [[ "$(grep -h '$plugin_version' *.php | grep -oP $SEMVER_REGEX)" != "$PLUGIN_VERSION" ]]; then
exit 1;
fi
fi
-
|
if [[ -f readme.txt ]]; then
# skip check if it's preproduction version
...
...
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