Commit Graph

76 Commits

Author SHA1 Message Date
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
Michael Stenta 6298ddb3a5 Ignore "File appears to be minified and cannot be processed" sniff on CSS files with SVG data. 2020-12-05 16:13:25 -05:00
Michael Stenta 9bb7d4f855 Update Dockerfile, docker-compose.development.yml, and docs for XDebug 3. 2020-12-04 14:24:12 -05:00
Michael Stenta eb971214da Issue #3186530: Inherit from drupal:9.0 Docker image to postpone PHP 8 update. 2020-12-04 09:52:17 -05:00
Michael Stenta cb255da25c Ignore upstream deprecation notices in PHPUnit tests. 2020-12-03 14:16:37 -05:00
Symbioquine 4f88cdda92 Wait only as long as necessary for Postgres and the farmOS file copying to be done
Also add more documentation to explain what is going on with the sentinel file waiting stuff
2020-11-27 06:53:07 -05:00
Symbioquine f8c77ea694 Run phpunit without XDebug to speed up tests
**Why:** Tests take about 8 - 9 minutes with XDebug, but closer to
3 minutes without it.

**How:** Implement strategy that mstenta@ described in https://www.drupal.org/project/farm/issues/3183687
using the dev docker image to build up the /opt/drupal directory,
but the prod image to actually run it since that image doesn't have
XDebug.
2020-11-23 16:14:38 -05:00
Michael Stenta 2656e0e786 Exclude Drupal.Arrays.Array.LongLineDeclaration sniff. 2020-09-25 09:19:50 -04:00
Michael Stenta b2aace5af6 Remove Uploadprogress. It is causing AH00051: child pid 27 exit signal Segmentation fault (11), possible coredump in /etc/apache2 2020-09-24 21:37:00 -04:00
Michael Stenta feb562c4aa Fix Uploadprogress is breaking farmos/farmos:7.x-1.x Docker image build #350 2020-09-24 13:44:58 -04:00
Michael Stenta c4ddf812bd Set OPcache's revalidation frequency to 0 seconds for development. 2020-08-20 16:32:40 -04:00
Michael Stenta 85e0fab939 Set recommended OPcache for maximum performance in Symfony applications. 2020-08-20 16:32:40 -04:00
Michael Stenta cf816e4fe8 Fix support for tagged versions in build-farmOS.sh.
Broken by 2ede85eee6 "Fix dev Dockerfile composer.json farmOS branch replacement."
2020-08-19 21:00:35 -04:00
Michael Stenta 06d0b9628d Exclude PHP CodeSniffer rule: Drupal.InfoFiles.AutoAddedKeys.Version CodeSniffer
We intentionally include the version in farm.info.yml, and
replace it ourselves during packaging via GitHub Actions.
2020-08-19 16:31:03 -04:00
Michael Stenta beeb044cd0 Configure PHP CodeSniffer in Docker dev image and document usage. 2020-08-19 16:31:03 -04:00
Michael Stenta 21952d0dbc Create a Composer config directory for the www-data user. 2020-08-12 13:33:45 -04:00
Michael Stenta 9a5b24158b Run build-farmOS.sh as the www-data user to avoid expensive chown later. 2020-08-12 12:58:55 -04:00
Michael Stenta c2ede11ee9 Install XDebug earlier in the farmos/farmos:2.x-dev build process. 2020-08-12 12:58:48 -04:00
Michael Stenta aabadf26ad Consolidate Composer install logic into a build-farmOS.sh script. 2020-08-12 12:58:33 -04:00
Michael Stenta cea64ad078 Build farmOS codebase as root. Change ownership of sites to www-data in farmos/farmos:2.x. Change ownership of entire codebase to www-data in dev. 2020-08-12 12:53:06 -04:00
Michael Stenta 07fed82f23 Merge farmos/farmos:2.x-base Dockerfile into farmos/farmos:2.x. 2020-08-12 12:50:15 -04:00
Michael Stenta 8275315895 Issue #3162686: Build farmos/farmos:2.x Docker image with composer install --no-dev 2020-08-12 12:48:05 -04:00
Michael Stenta 2ab25cd808 Issue #3162767: Use Docker Hub drupal:9 base image 2020-08-12 12:48:05 -04:00
Michael Stenta ef09c1fd82 Move codebase to /opt/drupal, symlink /var/www/html to /opt/drupal/web, don't override Apache document root. All to mimic upstream drupal:9 image. 2020-08-12 12:48:05 -04:00