Commit Graph

31 Commits

Author SHA1 Message Date
Mustapha Hadid
44513009a6 Fix pnpm lockfile error when setting up new dev env
Running ./do setup fails with this error:

ERR_PNPM_LOCKFILE_CONFIG_MISMATCH Cannot proceed with the frozen installation. The current "settings.autoInstallPeers" configuration doesn't match the value found in the lockfile

[MAILPOET-6201]
2024-08-27 10:29:39 +02:00
Pavel Dohnal
99a3cf2ea0 Remove obsolete property from docker compose 2024-07-15 11:01:48 +02:00
Rostislav Wolny
401751c576 Remove config for exposing storybook's port
[MAILPOET-6110]
2024-06-28 12:56:38 +02:00
Rodrigo Primo
7570c7ecfe Fix PNPM permission error when setting up the dev env
This commit fixes the following error when running ./do setup to configure the dev env on a new Linux machine:

```
[ExecStack] Running pnpm install --frozen-lockfile --prefer-offline
Internal Error: EACCES: permission denied, mkdir '/.cache'
Error: EACCES: permission denied, mkdir '/.cache'
```

It sets the $XDG_DATA_HOME variable to /tmp/.cache in docker-compose.yml. This will affect other programs that rely on $XDG_DATA_HOME, but it is probably harmless. I was not able to find an env variable that is specific to PNPM, and that would affect only the location of its cache directory (https://pnpm.io/next/npmrc#cache-dir).

[MAILPOET-5177]
2023-03-30 08:25:29 +02:00
Rostislav Wolny
3ffbd6e236 Add ANSI and ONLY_FULL_GROUP_BY to sql_mode for dev environment
The default modes shipped with the mysql or mariaDB docker containers are
STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
in this commit I added ANSI, ONLY_FULL_GROUP_BY so that we are sure that we don't break compatibility with those modes
[MAILPOET-4887]
2022-12-12 13:59:09 +01:00
Jan Jakes
06bd80eb85 Use pnpm patch for @woocommerce/components CSS fix
The style.css of @woocommerce/components contains invalid CSS strings like "(1fr)[2]"
that are not parseable by SASS. This patch fixes them to "1fr [2]" format.

[MAILPOET-4485]
2022-07-26 15:45:54 +02:00
Jan Jakes
67264710ed Make eslint-config a pnpm workspace
[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
ab27eaee2d Autoformat files with prettier
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Jan Lysý
50547f06df Change default PHP to version 8.1
[MAILPOET-4016]
2022-03-28 16:51:44 +02:00
Jan Jakes
9ea484c972 Fix TS type checking not workfing in Docker
[MAILPOET-4194]
2022-03-17 09:27:44 +01:00
Sam Najian
fdbb0d974e Expose Storybook port to the host
[MAILPOET-4078]
2022-02-07 15:16:15 +01:00
Sam Najian
2fd35cb4c2 Expose storybook port to host
[MAILPOET-4078]
2022-02-07 15:16:15 +01:00
Jan Lysý
fc200b3b26 Add eslint-config volume to docker-compose
[MAILPOET-3358]
2022-01-31 13:31:06 +01:00
Jan Jakes
3ae90da1d5 Update all docker compose versions to 3.8
[MAILPOET-3919]
2022-01-18 15:30:22 +01:00
Jan Jakes
75fb5c0030 Move dev data mounts under dev/data directory
[MAILPOET-3919]
2022-01-18 15:30:22 +01:00
Jan Jakes
df60207a50 Move dev scripts and docker config under dev directory
[MAILPOET-3919]
2022-01-18 15:30:22 +01:00
Jan Jakes
94a61a5738 Merge mailpoet-dev-env into the plugin repository
[MAILPOET-3919]
2022-01-18 15:30:22 +01:00
Jan Jakeš
4bd38f8e89 Move test-related Docker files to tests/docker 2019-02-06 14:59:15 +03:00
Jan Jakeš
6f934e2c87 Update Chrome for acceptance tests to current version
[MAILPOET-1738]
2019-01-31 13:49:45 +01:00
Pavel Dohnal
149c794905 Freeze mailhog to avoid problems in the future 2018-10-24 11:30:39 +02:00
Pavel Dohnal
cbf48327d9 Use older chrome for acceptance tests 2018-10-24 11:11:48 +02:00
Pavel Dohnal
38f8bec4c5 Add health check to docker compose
[MQ-50]
2018-07-12 16:04:16 +01:00
Pavel Dohnal
e77d00b179 Add DB variables to compose file
it will be configured automatically and we don't need to run `cli` to configure
2018-01-18 10:00:36 +00:00
Pavel Dohnal
368f7004c0 Fix acceptance tests on CircleCi
MAILPOET-1260
2018-01-02 14:48:21 +00:00
Vlad
944bf67190 Updates docker-compose 2017-11-08 14:04:45 +00:00
Vlad
97a9465db3 Adds MailHog for SMTP testing 2017-11-08 14:04:45 +00:00
Amine Ben hammou
543b3e5a91 changing tables prefix for acceptance tests 2017-10-24 09:13:43 +00:00
Pavel Dohnal
5d7b54ab22 Add circle ci configuration
[MAILPOET-997]
2017-08-17 08:13:11 +02:00
Pavel Dohnal
ad1f6e2a8e Fix caching problem
[MAILPOET-997]
2017-08-17 08:13:11 +02:00
Pavel Dohnal
d844b7e47f Initial acceptance testing setup
[MAILPOET-997]
2017-08-17 08:13:10 +02:00