Commit Graph

272 Commits

Author SHA1 Message Date
4ec737617b Update vlucas/phpdotenv
[MAILPOET-3889]
2021-10-28 15:44:18 +02:00
8335e59a50 Add temp to ignored folders for code sniffer
The folder is created by PHPStan and contains PHPStan cache.
It doesn't cause any errors but including it makes the check much longer.

[MAILPOET-3889]
2021-10-28 15:44:18 +02:00
06ddc42657 Run 'codecept build' before runninng PHPStan checks
This commit adds a call to the command 'codecept build' before running
PHPStan checks inside the command './do qa:phpstan'. This is needed to
make sure that the PHPStan checks don't fail with the error bellow
because of missing test support files that are autogenerated by
Codeception:

```
Bootstrap file tests/_support/_generated/AcceptanceTesterActions.php does not exist.
```

[MAILPOET-3552]
2021-09-29 09:54:29 +02:00
7fcdd5da91 Remove version detection from svn:publish command
[MAILPOET-3828]
2021-09-27 10:26:43 +02:00
2f494a2951 Change ./do qa:code-sniffer to include warnings by default
This change is necessary to make sure we are running PHPCS with the same
parameters in both CircleCI and the pre-commit hook. For more
information see the description of the related Jira ticket.

[MAILPOET-3831]
2021-09-27 10:14:49 +02:00
f98167a30c Add confirmation before running integration tests on dev site
[MAILPOET-3755]
2021-09-22 12:03:47 +02:00
dac4fb5dd0 Replace clean-webpack-plugin with initial cleanup in Robofile
We need to share the same output path (assets/build/js) in more configs
in order to generate a common manifest.json file.
The cleanup plugin and also build-in output.clean setting do the cleanup on emit
and that causes that they delete files we want to keep.
Using different output paths solves the problem with cleanup but it causes that we generate a bunch of manifest.json files
instead of one.
As simplest workaround I chose cleaning the output directory before we trigger the Webpack build in the Robofile.
[MAILPOET-3214]
2021-09-22 11:56:49 +02:00
4ed3b3e5ba Display the full call stack in the error output
[MAILPOET-3765]
2021-09-13 10:19:15 +02:00
e6823f137e Update css and cross-env packages
[MAILPOET-3658]
2021-07-06 13:29:00 +02:00
ea695ad5d1 Update webpack cli
[MAILPOET-3658]
2021-07-06 13:29:00 +02:00
a87ae60030 Make sure newsletter tests don't hang
On newer node JS our tests remained hanging.
--exit flag forces proces to exit after tests are finished
[MAILPOET-3673]
2021-07-02 07:28:41 +02:00
340653916c Refactor Robo t:newsletter-editor using collection
[MAILPOET-3673]
2021-07-02 07:28:41 +02:00
876c92ef0b Remove ./do watch task
[MAILPOET-3500]
2021-06-28 09:21:12 +02:00
16894fb81c Add typescript files to watch task
[MAILPOET-3500]
2021-06-28 09:21:12 +02:00
b48300d7b2 Add more groups for acceptance tests 2021-05-17 12:28:35 +02:00
81fc441d4f Add parallel execution for data generator
[MAILPOET-3226]
2021-05-11 14:25:16 +02:00
388db464bf Generate validation metadata also for doctrine proxies
[MAILPOET-3604]
2021-05-06 14:06:26 +02:00
a46595cfea Merge doctrine proxies and metadata generate commands into one
[MAILPOET-3604]
2021-05-06 14:06:26 +02:00
44f1269916 Change plugins download directory
[MAILPOET-3482]
2021-04-26 13:47:41 +02:00
ff806859cb Add robo command for downloading WooCommerce
[MAILPOET-3482]
2021-04-26 13:47:41 +02:00
edf5be833d Add Robo task for downloading WooCommerce Subscription plugin
[MAILPOET-3471]
2021-04-20 15:51:09 +02:00
70138089d7 PHPCS: set the supported PHP versions in the ruleset file
This commit moves the definition of the supported PHP versions from
RoboFile.php file to the PHPCS configuration file, ruleset.xml. This
should make it easier to configure PHPCS in other places like the IDE.

I also removed the constraint of the highest supported PHP version
(previously, it was hard-coded to 8.0) as I believe we support new PHP
versions as soon as they are released. With this change, we don't need to
remember to update testVersion tag whenever there is a new PHP version.

[MAILPOET-3439]
2021-02-22 15:31:56 +03:00
f8c74af9e3 Add PHPCS checks to the pre-commit hook
This commit adds PHPCS checks, using `./do qa:code-sniffer`, to the
pre-commit hook. To be able to do this, I had to modify `./do
qa:code-sniffer` to call PHPCS only once and change its signature to
accept an optional parameters with the list of files to check. If this
parameter is not passed, all files are checked.

As discussed with the rest of the team, before we were calling PHPCS
multiple times to be able to check for compatibility with different
versions of PHP, but as far as we can tell this is not necessary, and we
can check for compatibility with PHP >= 7.1 for all files.

As far as I know, changing the signature of RoboFile::qaCodeSniffer() is
not a problem and I updated the only instance where this method is
called.

[MAILPOET-3439]
2021-02-22 15:31:56 +03:00
1059f8d145 Remove PHP security check, it doesn't work any more
[MAILPOET-3327]
2021-02-01 11:58:43 +01:00
60f175bcca Fix a warning when running release command
[MAILPOET-3262]
2021-01-04 13:53:19 +01:00
b588737116 Remove WordPress installation from static analysis job
[MAILPOET-2837]
2021-01-04 12:28:53 +01:00
8b58167ed9 Remove phpstan configuration for loading WordPress
[MAILPOET-2837]
2021-01-04 12:28:53 +01:00
703fbe53a8 Update php version range for code sniffer
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
3845f400b1 Add parameter for php version to static analysis command
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
90eb894b72 Refactor acceptance tests splitting to respect coding style
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
c0c9b11c54 Add workaround for removed codeception/robo-paracept
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
12cc818f8b Fix required after optional parameter in doctrine config factory
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
eec1b9d6a3 Remove stylelint from command watch:css
[MAILPOET-3204]
2020-11-26 09:40:24 +01:00
688755a9bf Handle WP source path config for different environments
[MAILPOET-3029]
2020-11-09 11:04:32 +01:00
709ccf3857 Change getting next release version
[PREMIUM-147]
2020-10-19 08:28:28 +02:00
1de06f5aa6 Create and clean phpstan temp automatically
[MAILPOET-3146]
2020-10-08 15:59:05 +02:00
b7fde9dd93 Change logic of release next version
Premium should have the same minor version like free when is released.
Free will be released only with a patch version when premium branch
doesn't exist.
We assume that premium isn't released when branch doesn't exist.
[MAILPOET-3152]
2020-10-08 08:58:06 +02:00
21055c077b Update code sniffinch checks
[MAILPOET-3144]
2020-09-29 17:32:23 +02:00
79ea00b0ed Use twentynineteen theme 2020-06-23 15:53:41 +02:00
e9b8dbbbb6 Run data generator even if no arguments specified
[MAILPOET-2893]
2020-06-16 13:18:45 +02:00
8c3153e205 Fix css linter
[MAILPOET-2949]
2020-06-15 16:21:42 +02:00
34775caefd Create new jobs for php and js qa
[MAILPOET-2949]
2020-06-15 16:21:42 +02:00
fb2e1c707e Update phpstan and phpstan-doctrine
[MAILPOET-2945]
2020-05-27 13:40:41 +02:00
f9ea393b07 Refactor function to a separate file
[MAILPOET-2835]
2020-05-06 16:26:42 +02:00
d811b68815 Add ./do commands for watching and locally building Storybook
[MAILPOET-2769]
2020-04-23 14:34:58 +02:00
5ac98cca3d Fix release command
[MAILPOET-2853]
2020-04-14 18:09:19 +02:00
0ceac8921f Add Typescript linting to qa:lint-javascript command
[MAILPOET-2658]
2020-03-02 20:55:24 +00:00
a669beed07 Add ESLint rule for Typescript files
[MAILPOET-2658]
2020-03-02 20:55:24 +00:00
feec59e581 Fix deprecated usage of join() parameters order
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
26b6f340d1 Require PHP >= 7.0
[MAILPOET-2582]
2020-01-28 20:18:39 +00:00