Commit Graph

114 Commits

Author SHA1 Message Date
Jan Lysý
e45510e064 Add rerunning premium workflow into the prepare command
[PREMIUM-207]
2022-11-18 16:05:18 +01:00
Jan Lysý
bfafff132a Make the project parameter optional
[PREMIUM-207]
2022-11-18 16:05:18 +01:00
Jan Lysý
d6748fe979 Add command for rerunning circle workflow
[PREMIUM-207]
2022-11-18 16:05:18 +01:00
Jan Jakes
f369fdfa4a Add ./do migrations:new command to generate migration files
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
dd10389c55 Implement WP CLI command to show migrations info
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
3dd6ef3da7 Implement WP CLI command to run migrations
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Rodrigo Primo
65b56271d4 Update Woo HPOS build in test to the latest version
The latest version is 7.1.0-rc.2. Since this build is available on
WP.org, this commit also removes the custom code that we had to download
builds from GitHub. We can now use \RoboFile::downloadWooCommerceZip()
to download builds to test Woo HPOS.

[MAILPOET-4704]
2022-11-04 10:39:59 +01:00
Jan Jakes
4c65374a0c Add some POT file headers that we've been using
[MAILPOET-4611]
2022-10-31 10:03:45 +01:00
Jan Jakes
01eb59a295 Keep only the part of the old makepot logic that is required for HTML and HBS files
[MAILPOET-4611]
2022-10-31 10:03:45 +01:00
Jan Jakes
eb80adc2ed Extract translations from PHP and JS/TS files using WP CLI
[MAILPOET-4611]
2022-10-31 10:03:45 +01:00
Jan Jakes
3103ef11d5 Use old translation extraction logic only for HTML and HBS files
[MAILPOET-4611]
2022-10-31 10:03:45 +01:00
Jan Jakes
a1ead743fa Complete translation directory exclusion list, make it more readable
[MAILPOET-4611]
2022-10-31 10:03:45 +01:00
Rodrigo Primo
7521dbd1ef Update Woo COT build in test to the latest version
The latest version is 7.0.0-hpos.dev.7

[MAILPOET-4691]
2022-10-11 07:23:37 +02:00
Rodrigo Primo
db0a8bee0f Update Woo COT build in test to the latest version
The latest version is 7.0.0-hpos.dev.4

[MAILPOET-4691]
2022-10-04 09:26:11 +02:00
Jan Lysý
37d9bc5d0c Replace styles fixing with styles checking
[MAILPOET-4550]
2022-10-03 11:16:21 +02:00
Rostislav Wolny
3d4ca982a6 Update Woo COT build in test to the latest beta
[MAILPOET-4572]
2022-09-21 10:49:10 -03:00
Rostislav Wolny
65a6edff16 Add integration test job running woo tests with COT enabled
[MAILPOET-4572]
2022-09-19 11:38:03 -03:00
Rostislav Wolny
ebdeabaccf Add option to disable COT Synchronization into integration and acceptance tests
[MAILPOET-4572]
2022-09-19 11:38:03 -03:00
Rostislav Wolny
be9643515e Add option for toggle COT in integration and acceptance tests
[MAILPOET-4572]
2022-09-19 11:38:03 -03:00
Rostislav Wolny
82218ca48c Add ./do reset:test-docker command
We already have a similar command ./do delete:docker which removes everything
related to docker for test environment including images.
This is an overkill in case one wants to do just basic cleanup of container and volumes e.g. to allow
activation of a different version of WooCommerce
[MAILPOET-4572]
2022-09-19 11:38:03 -03:00
Rostislav Wolny
910ded0f30 Add temporary command for downloading WooCommerce build with COT
[MAILPOET-4572]
2022-09-19 11:38:03 -03:00
Pavel Dohnal
5984c1be04 Add a command to calculate number of pull requests 2022-09-09 11:02:50 +02:00
Rostislav Wolny
f05a7367ef Add shortcuts for Woo integration tests and base integration test to Robo
./do test:woo-integration - runs test from Woo group with and activate plugins
./do test:base-integration - runs test without Woo group with and doesn't activate plugins
[MAILPOET-4566]
2022-09-08 13:02:52 +02:00
Rostislav Wolny
8d564a52f1 Add option for skipping 3rd party plugins activation in integration tests
[MAILPOET-4566]
2022-09-08 13:02:52 +02:00
Rostislav Wolny
08d970a94b Add support for group to integration test robo command
[MAILPOET-4566]
2022-09-08 13:02:52 +02:00
Jan Jakes
a377f0c946 Do not limit memory for CodeSniffer
[MAILPOET-4617]
2022-09-06 17:38:01 +02:00
Jan Jakes
6a6d11ccdb Fix ignore patterns for CodeSniffer
[MAILPOET-4617]
2022-09-06 17:38:01 +02:00
Jan Jakes
2e6248b63b Run scripts using pnpm
[MAILPOET-4485]
2022-07-26 15:45:54 +02:00
Jan Jakes
c41ab7464c Make mailpoet a pnpm workspace
[MAILPOET-4485]
2022-07-26 15:45:54 +02:00
Jan Jakes
c83a3b7d8d Use pnpm in the monorepo root
[MAILPOET-4485]
2022-07-26 15:45:54 +02:00
Pavel Dohnal
a32af0c103 Fix Shop project 2022-06-21 13:17:45 +02:00
Pavel Dohnal
57937c71a0 Display number of reviews 2022-06-21 13:17:45 +02:00
David Remer
0d4048b682 Remove WordPress from build process
[MAILPOET-3985]
2022-06-08 15:25:41 +02:00
David Remer
d15be7555c Add hbs and txt files
[MAILPOET-3985]
2022-06-08 15:25:41 +02:00
David Remer
afb03bd83f Add twig:generate-cache command
[MAILPOET-3985]
2022-06-08 15:25:41 +02:00
Rodrigo Primo
e56e2db9ef Update release script to use trunk instead of master
[MAILPOET-3466]
2022-05-31 11:23:33 +01:00
Sam Najian
77d46d9a1b Remove memory limit when building translations 2022-05-18 15:27:29 +02:00
Sam Najian
e4886cf812 Update Doctrine before running tests
[MAILPOET-4251]
2022-05-17 14:17:26 +02:00
Sam Najian
393154e080 Adjust used Docker container to run integration tests
[MAILPOET-4251]
2022-05-17 14:17:26 +02:00
Rostislav Wolny
c50715698c Run cache cleanup command within do install command
Changes introduced in new versions of packages often cause incompatibility issues in generated and cached files.
[MAILPOET-4262]
2022-05-04 09:20:32 +02:00
Rostislav Wolny
51e67dca73 Add do command for cleaning up generated and cached files
[MAILPOET-4262]
2022-05-04 09:20:32 +02:00
Jan Jakes
ba322bc078 Add Robo commands for prettier
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Jan Jakes
b5530bad70 Install repo root dependencies in ./do install
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Rodrigo Primo
f38443f82e Fix minor error in logic to create lang dir
This commit fixes a small error in the logic to create the lang dir
inside the Robo command to get the mailpoet.pot file from the CircleCI
build.

The old code would always return false and thus ways try to create the
directory mailpoet/lang as the path 'mailpoet/lang' is not a file and it
is wrong. To fix this problem `is_file()` was replaced with
`file_exists()` and the correct path was passed to the function (__DIR__
. '/lang' instead of 'mailpoet/lang').

[MAILPOET-4173]
2022-04-09 10:36:16 +02:00
Rodrigo Primo
05c3c68c56 Remove references to CircleCI from command to get the .pot file
This commit removes references to CircleCI from the command that gets
the .pot file from the CircleCI release build. I'm doing this based on
review feedback in case in the future we decide to get the .pot file
from a different source.

[MAILPOET-4173]
2022-04-09 10:36:16 +02:00
Rodrigo Primo
8e0283b4dd Update release:publish to use mailpoet.pot file from CircleCI
This commit changes the Robo command release:publish to use the
mailpoet.pot file that is present in the zip file in the release branch
of the CircleCI build. Before we were using the mailpoet.pot file
present in the local repository, which meant it could contain undesired
local changes that should not be included when creating a new MailPoet
release.

A new Robo command was created to get the zip file from CircleCI called
translations:get-pot-file-from-circle-ci. The old translations:build was
preserved as it is used inside mailpoet/build.sh.

[MAILPOET-4173]
2022-04-09 10:36:16 +02:00
David Remer
f4b040d8ff Fix two minor sniff warnings
WordPress.NamingConventions.PrefixAllGlobals.DeprecatedWhitelistCommentFound
WordPress.WP.DeprecatedParameters.Load_plugin_textdomainParam2Found
[MAILPOET-4219]
2022-04-04 17:12:33 +02:00
Jan Lysý
d0822be924 Remove translations:pack command
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Jakes
2ba8d15c6a Pass transifex token using env variable
[MAILPOET-4189]
2022-03-16 13:20:19 +01:00
Jan Jakes
2322ec909c Use new Transifex CLI
[MAILPOET-4189]
2022-03-16 13:20:19 +01:00