Michael Stenta
7c73c28626
Ignore Symfony deprecations helper during tests.
2023-10-30 12:07:29 -04:00
Michael Stenta
50803a5c83
Run PHPCompatibility sniff for PHP 8.2+.
2023-10-30 12:07:29 -04:00
Michael Stenta
67b22eee47
Issue #3270558 : Install and create the postgres pg_trgm extension in docker container
2023-10-30 12:07:29 -04:00
Michael Stenta
a183e648af
Update PHPCodesniffer drupal_core_version to 10.
2023-10-30 12:07:29 -04:00
Michael Stenta
5e6a428eb9
Update Drupal core to 10.1.5.
2023-10-30 12:07:28 -04:00
Michael Stenta
8e6efe656e
Inherit from the Drupal 10 image on Docker Hub.
2023-10-27 13:27:01 -04:00
Michael Stenta
e417ee9ad6
Change all references of 2.x to 3.x in code, docs, and workflows.
2023-10-27 09:25:10 -04:00
Michael Stenta
131c2a54ba
Use php-geos GitHub repo mirror for Docker builds.
...
The official repo (https://git.osgeo.org/gitea/geos/php-geos )
has been failing git clone during GitHub Actions recently.
Using the GitHub mirror will reduce the load we are putting
on OSGeo's self-hosted servers too.
2023-05-19 08:10:54 -04:00
Michael Stenta
21d2d2a6e4
Replace all usages of docker-compose with docker compose.
2023-03-30 09:43:07 -04:00
Michael Stenta
637843aabf
Exclude PHP CodeSniffer rule: Drupal.InfoFiles.AutoAddedKeys.Version Project
...
We intentionally include the project in farm.info.yml, because we handle
packaging ourselves via GitHub Actions.
This line was added in https://www.drupal.org/project/farm/issues/3336698
This caused the following CodeSniffer warning:
FILE: /opt/drupal/web/profiles/farm/farm.info.yml
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
1 | WARNING | Remove "project" from the info file, it will be added
| | by drupal.org packaging automatically
----------------------------------------------------------------------
2023-01-27 16:30:24 -05:00
Michael Stenta
45ef7ba4c7
Inherit from the official drupal:9.5 Docker image.
2022-12-16 12:19:39 -05:00
Michael Stenta
329ab9cfb4
Inherit from drupal:9.4 Docker image (for https://github.com/farmOS/farmOS/pull/566 ).
2022-11-28 08:50:29 -05:00
Michael Stenta
6686e1a1c3
Clone php-geos repository at the latest commit that adds PHP 8 support.
...
PHP 8 support has been added upstream. See:
https://git.osgeo.org/gitea/geos/php-geos/issues/26
https://git.osgeo.org/gitea/geos/php-geos/issues/27
2022-11-28 08:50:29 -05:00
Michael Stenta
ae3bb892cd
Patch php-geos for PHP 8 compatibility.
...
See https://git.osgeo.org/gitea/geos/php-geos/issues/26#issuecomment-8988
2022-11-28 08:50:29 -05:00
Michael Stenta
ec354218df
Inherit from drupal:9.3 Docker image (PHP 8).
2022-11-28 08:50:29 -05:00
Michael Stenta
80c6516c76
Check PHP 7.4+ compatibility with PHPCompatibility codesniffer extension.
2022-11-12 12:30:30 -05:00
Michael Stenta
4518cf4557
Update XDebug documentation to recommend discover_client_host=yes.
2022-11-12 10:29:57 -05:00
Michael Stenta
169df4f51c
Remove unnecessary call to phpcs --config-set installed_paths.
...
The dealerdirect/phpcodesniffer-composer-installer plugin handles
this for us automatically now.
2022-11-12 10:25:58 -05:00
Michael Stenta
757399438f
Tell PHPStan where to find GeoPHP classes.
...
This fixes the following errors:
- Property Drupal\farm_geo\GeometryWrapper::$geometry has unknown class Geometry as its type.
- Parameter $geometry of method Drupal\farm_geo\GeometryWrapper::__construct() has invalid type Geometry.
- Instantiated class GeometryCollection not found.
2022-09-13 10:23:48 -04:00
Michael Stenta
bc92cb4714
Ignore "Unsafe usage of new static()" PHPStan errors.
...
See https://www.drupal.org/docs/develop/development-tools/phpstan/handling-unsafe-usage-of-new-static
2022-09-12 19:38:25 -04:00
Michael Stenta
eedcc16115
Configure PHPStan via phpstan.neon.
...
See https://www.drupal.org/docs/develop/development-tools/phpstan/getting-started
2022-09-12 19:38:25 -04:00
Michael Stenta
a0accbd38f
Add PHPStan dependencies: phpstan/phpstan, phpstan/phpstan-deprecation-rules, phpstan/extension-installer, mglaman/phpstan-drupal.
2022-09-12 19:38:23 -04:00
Paul Weidner
e6f1c85c8f
Allow dealerdirect/phpcodesniffer-composer-installer composer plugin.
2022-06-14 13:27:26 -04:00
Paul Weidner
5c764c5b50
Pin selenium/standalone-chrome to 4.1.2-20220217. #514
2022-04-07 11:24:01 -04:00
Michael Stenta
dd6858c86c
Include slevomat/coding-standard in phpcs installed_paths config. Fixes #498
2022-01-31 06:44:47 -05:00
Paul Weidner
bef4f25032
Add allow-plugins config #467
2022-01-03 15:53:30 -05:00
Michael Stenta
394daa9f06
Reference non-existent farmos/farmos:2.x.y Docker tag in production hosting docs/examples.
...
By doing this, we will be forcing the end-user to follow best
practice by making an intentional decision about the version
they will use. We do not want farmos/farmos:2.x to be referenced
by default in the docs, otherwise we will be directing folks to
use the development branch, which may not be stable, and may
change if they update the image via `docker pull`. We also don't
want to recommend farmos/farmos:latest, for a similar reason:
when updating between versions it is important to manually run
update.php. By forcing intentional version use and updates, we
encourage best practice for updates as well.
2021-12-23 07:10:22 -05:00
Michael Stenta
73c3740322
Change docs.farmOS.org references to farmOS.org.
2021-12-23 06:56:37 -05:00
Michael Stenta
deb59bed54
Set version in farm.info.yml via build-farmOS.sh.
...
This ensures that the version is correctly set in the
Docker images. Previously, it was only being set in
the packaged tarball releases.
2021-12-09 09:58:57 -05:00
Paul Weidner
59673a5b64
Only change the www-data ID right before it is needed. #457
2021-10-18 09:10:17 -04:00
Michael Stenta
b3d62baf33
Set PHP expose_php to Off.
2021-09-14 14:44:15 -04:00
Michael Stenta
38fe21bdb2
Set PHP post_max_size and upload_max_filesize to 100M.
2021-09-14 14:43:54 -04:00
Michael Stenta
2bc77bb4b2
Remove test-runner service.
2021-09-02 14:44:51 -04:00
Michael Stenta
36fb1809fc
Run tests in www service instead of test-runner.
2021-09-02 14:44:26 -04:00
Michael Stenta
e8702df7ac
Disable XDebug in testing services.
2021-09-02 14:30:19 -04:00
Michael Stenta
cabae65179
Set Apache ServerName directive globally to suppress AH00558 message.
2021-08-25 06:19:33 -04:00
paul121
fee51113a6
Add chrome service definition to docker-compose.development.yml.
2021-08-23 09:18:57 -04:00
paul121
13f0787edd
Test execution should fail on incomplete or skipped tests.
2021-08-23 09:18:57 -04:00
paul121
abb8cde9ee
Update PHPUnit mink webdriver config to use the chrome container.
2021-08-23 09:18:57 -04:00
paul121
17c13614f3
Add a container with chromedriver to run javascript tests.
2021-08-23 09:18:57 -04:00
paul121
9cd609e169
Create a docker-compose.testing.common.yml file to share configuration.
2021-08-23 09:18:57 -04:00
Paul Weidner
921c578d3f
Create a new /var/farmOS directory in two steps. #440
2021-08-21 22:38:43 +00:00
paul121
1af8413441
Require 2.x-dev if 2.x is requested.
2021-03-24 07:26:57 -04:00
Paul Weidner
fe00d7402b
Simplify composer require farmos/farmos version.
2021-03-24 07:26:57 -04:00
Michael Stenta
32cab033de
Issue #3186530 : Inherit from the drupal:9-php7.4-apache image.
2021-03-11 16:37:18 -05:00
Michael Stenta
3eb0a6e892
Exclude Sniffs that prevent blank lines after comments.
...
This is being discussed upstream in https://www.drupal.org/project/coder/issues/2159253
and https://www.drupal.org/project/coding_standards/issues/2464123 .
We can remove these exclusions if/when they are removed upstream.
2021-03-11 16:37:18 -05:00
paul121
8c6e508baf
Simplify adding farmOS repository to composer.json. #414
2021-02-27 15:14:25 -05:00
Michael Stenta
1126516024
Installing farmOS documentation.
2021-02-25 23:50:46 -05:00
Michael Stenta
a3fc2f6ce4
Add `restart: always` to docker-compose.production.yml.
2021-02-25 22:30:54 -05:00
Symbioquine
938d80101c
Use a test matrix to run tests and site-install against MariaDB/SQLite/Postgres in parallel
...
**Why?** Detect if things break on specific DBMS' and have ongoing proof
that the top DB options work with farmOS.
2021-01-18 14:31:39 -05:00