Commit Graph

282 Commits

Author SHA1 Message Date
Lukas Reschke a58057c45d Add XDEBUG_MODE=coverage
This should help the Codecov execution jobs.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-06-01 11:21:13 +02:00
Lukas Reschke b4d6d8a70d Use MariaDB from GHCR
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-05-29 01:01:19 +02:00
Lukas Reschke 93da0cfd38 Move PGSQL to GHCR
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-05-29 00:51:30 +02:00
Lukas Reschke be651cee11 Migrate more services to GHCR
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-05-29 00:43:48 +02:00
Lukas Reschke 3e6e6eeb5b Bump Container Versions
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-05-28 23:43:43 +02:00
Lukas Reschke ee2a0f2c1b Use GHCR PHP 7.3 Acceptance Container
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-05-28 23:40:45 +02:00
John Molakvoæ 91788cc90e
Merge pull request #27211 from nextcloud/use-ghcr-php7.3 2021-05-28 17:16:01 +02:00
John Molakvoæ bce941ef77
Merge pull request #27212 from nextcloud/use-gchr-for-services
Use GHCR for services
2021-05-28 17:14:40 +02:00
John Molakvoæ a0f8a5395b
Merge pull request #27213 from nextcloud/use-alpine-git
Use GHCR for Git Pull image
2021-05-28 17:14:26 +02:00
Lukas Reschke e904f83816 Use GHCR Selenium Container
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-05-28 14:13:01 +02:00
Lukas Reschke 88899dabbe Use GHCR for Git Pull image
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-05-28 14:06:47 +02:00
Lukas Reschke 11bd715ecd Use GHCR for services
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-05-28 13:58:52 +02:00
Lukas Reschke 87dcde78d0 Use GHCR PHP 7.3 container
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-05-28 13:46:54 +02:00
Lukas Reschke ac8f614d1b Use GitHub container registry
To avoid Docker ratelimit issues.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-05-27 23:10:03 +02:00
Daniel Calviño Sánchez e2c4a174f2 Add integration tests for searching users in contacts menu
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-04-23 11:44:42 +02:00
Daniel Calviño Sánchez 9e1246eba5 Update acceptance tests to Selenium 3
The acceptance tests used the last Selenium 2 Docker container
available, which provides a rather old Firefox version (Firefox 47).
Nevertheless, despite some rendering issues, most things still worked as
expected due to the JavaScript files being built with support for older
browsers. However, now that support for Internet Explorer 11 and older
browsers will be dropped things could start to fail, so a newer browser
(and thus a newer Selenium version) should be used in the acceptance
tests.

Selenium has been standardized by the W3C, and the protocol to
communicate between the Selenium server and the browser has changed due
to that. Firefox >= 48 only supports the new W3C protocol, but the
Selenium driver for Mink does not support it yet.

The old protocol can still be used in recent Chromium/Chrome versions by
explicitly forcing it, so for the time being the acceptance tests will
need to be run on Chrome instead (although Firefox provides some
interesting features like the fake streams that would be needed to test
calls in Talk, so they should be moved again to Firefox once possible).

Finally, the default shm size of Docker is 64 MiB. This does not seem
enough to run newer Chrome releases and causes the browser to randomly
crash during the tests ("unknown error: session deleted because of page
crash" is shown in the logs). Due to this "disable-dev-shm-usage" needs
to be used so Chrome writes shared memory files into "/tmp" instead of
"/dev/shm" (the default shm size of Docker could have been increased
instead using "docker run --shm-size...", but that seems to be
problematic when the container is run in current Drone releases).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-04-16 20:00:15 +02:00
Morris Jobke 6401d88283
Merge pull request #25331 from nextcloud/fix-valid-storages-removed-when-cleaning-remote-storages
Fix valid storages removed when cleaning remote storages
2021-03-18 08:57:09 +01:00
Joas Schilling 1683e0289b
Also execute the new tests on drone
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-03-10 19:10:24 +01:00
Daniel Calviño Sánchez 3aba5b27be Add integration tests for "sharing:cleanup-remote-storages" OCC command
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-01-26 11:06:33 +01:00
Morris Jobke 250f76a59c
Use specific docker image tags to allow drone to cache them and not run into docker pull rate limits
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2021-01-08 13:23:55 +01:00
Daniel Calviño Sánchez dafd0f1441 Fix name of avatar integration tests in Drone
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-01-07 18:26:08 +01:00
Roeland Jago Douma 734b29b277
Update postgres version tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-01-07 09:27:10 +01:00
Roeland Jago Douma e334fa2594
No need to run mysql5 tests anymore
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-01-06 21:26:39 +01:00
Julius Härtl c7a320d880 jsunit: Run jsunit with chromium/puppeteer on github actions
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-12-29 08:42:27 +01:00
Roeland Jago Douma b611bc3115
Add php8 CI
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-12-07 15:43:54 +01:00
Daniel Calviño Sánchez 2cc22a06b4 Add integration tests for user avatars
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-12-07 04:47:56 +01:00
Joas Schilling 0de48617ec
Only run phpunit when php, xml or test files are modified
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-10-30 09:46:53 +01:00
Joas Schilling f79f1895d3
To revert once php8.0 packages are there
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-09-18 09:51:42 +02:00
Joas Schilling 9ac888d895
Update drone testing matrix
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-09-18 09:32:23 +02:00
Morris Jobke 04a3580d19
Remove phan config - was replaced by Psalm
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-09-16 14:46:29 +02:00
Morris Jobke c25c984df5
Disable fragile comments tests
Those tests are actual problems in our code. See https://github.com/nextcloud/server/pull/20462#issuecomment-613380650 for a summary by @danxuliu

Basically they are introduced by #18929 but are only revealed by #18764.

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-07-21 13:31:19 +02:00
Daniel Kesselberg 9d04ed66e3
Hello codecov 🚀
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-06-30 21:53:11 +02:00
Daniel Calviño Sánchez f5ef3ee352 Do not clone the whole Talk repository for integration tests
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-05-29 17:02:03 +02:00
Daniel Calviño Sánchez b192c04dc2 Add integration tests for video verification
Enabling the "send password by Talk" property of shares require that
Talk is installed and enabled, so the Drone step that runs them has to
first clone the Talk repository.

When the integration tests are run on a local development instance,
however, it is not guaranteed that Talk is installed. Due to this the
"@Talk" tag was added, which ensures that any feature or scenario marked
with it will first check if Talk is installed and, if not, skip the
scenario (instead of failing).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2020-05-29 02:50:30 +02:00
Arthur Schiwon 84619a5b9c
use serverControls directly with LDAP calls, fixes 19127
- adapters for PHP API version to Support PHP < 7.3
- switch to pass only one base per search
- cookie logic is moved from Access to API adapters

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2020-04-14 12:58:28 +02:00
Gary Kim 907a27897a
Move Compile Handlebars CI to GitHub Actions
Signed-off-by: Gary Kim <gary@garykim.dev>
2020-02-23 12:13:48 +08:00
Roeland Jago Douma 64665c98e1
Lint on github actions
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-02-10 09:32:45 +01:00
Roeland Jago Douma e639e11de3
Move npm build to github actions
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-02-03 09:42:23 +01:00
Roeland Jago Douma ba401b0c97
Bump integration to php7.3 with redis
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-11-28 12:34:24 +01:00
Roeland Jago Douma 734d496d63
Bump memcached image
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-11-27 15:27:28 +01:00
Roeland Jago Douma a987f809e6
REVERT LATER: disable phan for now
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-11-27 15:27:28 +01:00
Roeland Jago Douma 4bed12e4d6
Update drone
* Run 7.4 tests (nodb + sqlite)
* Update older images to newer phpunit

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-11-27 13:34:41 +01:00
Roeland Jago Douma 8166448103
Merge pull request #18045 from nextcloud/ci/other/php73
Move more CI tests to php7.3
2019-11-21 15:53:50 +01:00
Roeland Jago Douma 8fb897fca0
Move more CI tests to php7.3
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-11-21 07:53:24 +01:00
Roeland Jago Douma f559e8f25e
Move integration tests to php7.3
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-11-20 21:49:28 +01:00
Roeland Jago Douma 6f1bac3216
php7.2 minimum for 18
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-11-13 09:29:57 +01:00
Daniel Calviño Sánchez 81d0b70791 Run acceptance tests on PHP 7.3
There is no difference (as far as I know) between running the acceptance
tests on PHP 7.1 or on PHP 7.3; this is simply a preparatory step to be
ready when PHP 7.1 support is dropped in Nextcloud server.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-10-22 16:48:55 +02:00
Roeland Jago Douma f663154adf
Merge pull request #17480 from nextcloud/enhancement/drone/no-submodule-when-not-needed
Remove unnecessary submodules steps
2019-10-09 08:59:20 +02:00
John Molakvoæ (skjnldsv) 8b6731b1f0
Remove unwanted submodules
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2019-10-09 07:44:50 +02:00
Roeland Jago Douma 4cc5b28063
Run composer install in parallel
The newer docker image runs the composer isntall in parallel. Saving
precious seconds on CI.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-10-08 21:17:53 +02:00