Commit Graph

84 Commits

Author SHA1 Message Date
Hugo Sales
b41de11364
[TESTS] Remove environment setup from script 2022-10-29 19:54:37 +01:00
Hugo Sales
789b1499c5
[TESTS] Fix deprecation warnings caused by removing xdebug 2022-10-29 16:40:28 +01:00
Hugo Sales
daec26f2d8
[TESTS] Speed up test runs 2022-10-28 19:22:30 +01:00
Hugo Sales
46fcab2e94
[TESTS] Fix deprecations and unstable tests 2022-10-28 18:49:03 +01:00
Hugo Sales
e44bef6de7
[TESTS] Use paratest and PHPUnit cache
This speeds up tests from 90s to 44s on my machine
2022-10-28 00:22:42 +01:00
Hugo Sales
9679e766d2
[DOCKER] Small fixes in docker startup scripts 2022-10-26 13:59:10 +01:00
Hugo Sales
584a0d8fed
[DOCKER][Redis][PLUGIN][OAuth2] Temporarily disable redis protected mode and fix permission of OAuth2 keys 2022-10-25 22:25:44 +01:00
Diogo Peralta Cordeiro
60713878f0
[TESTS] Load languages prior to remaining fixtures 2022-03-19 22:18:00 +00:00
Hugo Sales
91fecd77ba
[TOOLS][DOCKER] Use a more robust way to check for database availability 2022-03-19 17:20:12 +00:00
Hugo Sales
e22fe55bbe
[TOOLS] Add .well-known/acme-challenge/ root certbot to nginx container, to allow certbot certificate renewals 2022-03-19 07:32:01 +00:00
Hugo Sales
eb3c848fc8
[TOOLS][TESTS] Ensure database schema is up to date in tests 2022-03-13 14:22:18 +00:00
Hugo Sales
8433771465
[TOOLING][TESTS] Allow specifying any phpunit flag when invoking make
Examples:
  make test -- --filter 'method'
  make test -- directory
2022-03-10 01:23:36 +00:00
Hugo Sales
eccf21edef
[TOOLS][PLUGINS][OAuth2] Add mechanism to allow plugins to have an install script. Add script for generating keys for OAuth 2022-02-28 15:47:32 +00:00
Hugo Sales
25b2847201
[TOOLS][AYY1] Improve accesibility testing to save images and compare the differences against a reference (tests/screenshots/ 2022-01-21 21:03:09 +00:00
Hugo Sales
de795b78f9
[DOCKER][DEPENDENCIES] Restructure PHP Dockerfile to install each package in separate layers and add WikiMedia texvc 2022-01-21 21:03:09 +00:00
Hugo Sales
a59997b41f
[TOOLS][DOCKER][A11Y] Switch to Pa11y CI and don't run it 'integrated' with codeception, since there was no good way to share cookies 2022-01-21 21:03:06 +00:00
Hugo Sales
65504b72bb
[TOOLS] Setup pa11y to run on pages after codeception 2022-01-10 23:09:39 +00:00
Hugo Sales
b2b445d21e
[TOOLS][DOCKER] Add pa11y and nginx container to tooling toolchain 2022-01-09 14:44:56 +00:00
Hugo Sales
894c78bf99
[TOOLS] Keep git in docker image, since we use patched composer packages, temporarily 2022-01-09 14:43:33 +00:00
Hugo Sales
6883e51fc8
[DOCKER] Force docker php to use proper PHP executable 2021-12-26 19:16:16 +00:00
Hugo Sales
6ada5e60d2
[TOOLS] Make PHP-CS-Fixer and PHP-Doc-check run inside the tooling container 2021-12-25 15:20:21 +00:00
Hugo Sales
36976d8fe7
[DOCKER] Update configuration script to include the worker container 2021-12-20 20:39:54 +00:00
Eliseu Amaro
030c966b74
[DOCKER][Accessibility] Add pa11y docker image for automated accessibility tests
TODO: Testing within local social container
2021-12-01 20:29:06 +00:00
Hugo Sales
0dd4b62ded
[TOOLS][DOCKER] Add worker container and script, which handles the queues 2021-11-15 19:25:53 +00:00
Hugo Sales
316723075b
[TESTS] Reload the initial table values after loading the data fixtures (as this purges the DB) 2021-11-11 12:39:36 +00:00
Hugo Sales
420ebcda26
[TESTS] Run tests without runuser as it's generating very weird permission errors. This is temporary (TM) 2021-11-11 12:38:09 +00:00
Hugo Sales
98b1b7072c
[TOOLS] Fix running tests without filters 2021-11-09 23:38:37 +00:00
Hugo Sales
2bd05fbd47
[TOOLS][COMMAND] Add 'app:populate_initial_values' command, which inserts values into the language table if it does not yet contain values. Add database-force-nuke to Makefile, which does all the steps necessary to reset the database 2021-11-08 16:08:02 +00:00
Hugo Sales
8238980395
[TOOLS] Allow specifying a list of filters when running tests with make. When running make test foobar only the test foobar is executed (read the documentation for phpunit --filter) 2021-10-28 17:24:43 +01:00
Hugo Sales
a6d5752748
[TOOLS][PHPStan] Make a standalone phpstan executable, which executes inside the docker container 2021-10-27 04:19:31 +01:00
Diogo Peralta Cordeiro
3ef1077f90
[DOCKER] TODOify mail server certificate 2021-09-23 15:47:51 +01:00
Hugo Sales
15a87055a6
[DOCKER][Redis] Add way to override Redis config. Default to only one database 2021-09-21 11:04:26 +01:00
Hugo Sales
1f3a6fe6ac
[TESTS] Fix and/or temporarily disable failing tests. We'll get back to this 2021-09-14 13:36:30 +01:00
Hugo Sales
1adde913c6
[PHPStan] Only run custom PHPStan extensions if environment vairable PHPSTAN_BOOT_KERNEL is defined (since it requires having the whole social setup available) 2021-09-14 13:13:45 +01:00
Hugo Sales
9d7f43cd28
[TOOLS][PHPStan][TESTS][Docker] Rework testing Docker container into a more generic tooling container. Keep services up and run coverage and phpstan as commands, for performance and ease of use 2021-09-14 13:13:44 +01:00
Hugo Sales
86bdc398c5
[DOCKER] Update PHP docker container to include ffmpeg, for the VideoEncoderPlugin 2021-09-14 13:13:34 +01:00
Hugo Sales
0f634e86c7
[TESTS] Revert exposing Redis docker container ports, as this conflicts with the actual instance, and was intended for testing 2021-09-14 13:13:14 +01:00
Hugo Sales
88f1437ee7
[TESTS] Use vendor/bin/simple-phpunit for running the tests, as it provides the appropriate polyfills 2021-09-14 13:13:12 +01:00
Eliseu Amaro
c33a65c45e
[DOCKER][nginx] Removing default nginx config through docker/nginx/domain.sh. The default config conflicts with 'localhost' server_name. 2021-09-14 13:13:02 +01:00
Hugo Sales
ffa3774c46
[TOOLS][TESTS] Make tests run as www-data 2021-09-14 13:13:00 +01:00
Hugo Sales
d2020eb7d8
[TOOLS][TESTS] Adjust configuration for testing environment 2021-09-14 13:12:59 +01:00
Hugo Sales
5d326bd18e
[TESTS] Move testing container's DB and Redis to different ports, so it can be used at the same time as the regular containers 2021-09-14 13:12:58 +01:00
Hugo Sales
ee97cc5b00
[TESTS] Add test container with Xdebug and allow for generation of coverage reports with 'make test' 2021-09-14 13:12:57 +01:00
Hugo Sales
081b0de919
[DOCKER] Add VIPS PHP extension to Docker build 2021-09-14 13:11:51 +01:00
Hugo Sales
155f30e816
[TOOLS] Fix missing exported variable in bin/configure 2021-09-14 13:10:54 +01:00
Hugo Sales
a38ee03f18
[TOOLS][DOCKER] Make sure composer doesn't require interaction when installing 2021-09-14 13:10:54 +01:00
Hugo Sales
ff771223af
[DOCKER][TOOLS] Add option to bin/configure to use a prebuilt PHP container (https://hub.docker.com/repository/docker/gsocial/php) 2021-09-14 13:10:22 +01:00
Hugo Sales
1773ab7af2
[DOCKER][MAIL] Update config and change the way mail docker handles it, so the edits aren't visible from the outside, polluting the git staging area 2021-09-14 13:10:20 +01:00
Hugo Sales
b3623329e3
[DOKER][MAIL][BOOTSTRAP] Make bootstrap generate separate certificates for the web root and the mail server 2021-09-14 13:10:20 +01:00
Hugo Sales
b824a0425e
[DOCKER] Remove quotes from docker env files, as docker (or at least docker-compose) include them in the actual value 2021-09-14 13:10:20 +01:00