Граф коммитов

61 Коммитов

Автор SHA1 Сообщение Дата
Joas Schilling 70599c2845
Execute integration tests on drone
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-10-30 10:38:51 +01:00
Joas Schilling 1b7a454676
Update version on master
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-09-18 10:53:42 +02:00
Joas Schilling 27af78f8eb
Enable fixed postgres tests again
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-06-25 10:16:07 +02:00
Joas Schilling 7d6ffbfa2e
Validate the info.xml file with a workflow
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-06-15 13:12:23 +02:00
Joas Schilling c83b6b5031
Remove compile checker it should be a github action when enabling it ever again
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-05-14 12:31:47 +02:00
Joas Schilling d772a25192
Remove Postgres unit test for now until the boot up of the postgres docker is fixed
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-04-07 09:55:28 +02:00
Joas Schilling 13ad0c2911
Fix drone app:check-code test
Currently we have to work around a issue in the server with our long running chat requests.
This involves setting up the filesystem again which is not possible with public API.
So we ignore the test if it outputs the known 5 lines

Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-20 17:27:27 +01:00
Joas Schilling 5794a151d7
Remove code from bundling webrtc manually
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-12-16 12:01:33 +01:00
Joas Schilling c68fb364e6
Try linting via github actions
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-12-05 22:13:50 +01:00
Joas Schilling 0a56fe5026
Roeland released 7.4-2 manually so it's 7.4:2
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-11-28 16:42:58 +01:00
Joas Schilling 80357681e6
Update master php testing versions
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-11-28 14:38:27 +01:00
Daniel Calviño Sánchez 723b1e666d Use nextcloudci Docker image for node
The NPM major version was recently bumped in the node:lts Docker image,
so CI started to fail due to unclean JavaScript builds. The server seems
to require the previous version due to incompatible dependencies, so for
consistency the JavaScript files are still built and checked with the
previous version instead of updating them to the new one.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-11-07 20:25:08 +01:00
Joas Schilling b4e237d157
Remove handlebar code
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-10-18 13:14:11 +02:00
Joas Schilling acde3cf031
Bump image to stylelint-2 which comes with stylelint 11.0.0
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-10-16 10:48:51 +02:00
Joas Schilling 83ae8d930e
Try to fix eslint
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-10-16 10:12:12 +02:00
Joas Schilling 9203f905d7
Fix step-name of stylelint
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-10-16 10:11:55 +02:00
Joas Schilling c65a56b0e3
Fix eslint
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-10-09 12:17:57 +02:00
Joas Schilling aff9cb68e6
Pause build checkers until a follow up fixes the expectations
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-10-09 12:04:48 +02:00
Joas Schilling b3791430eb
Pause acceptance tests until we are in a testable state again
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-10-09 12:03:53 +02:00
Joas Schilling 5b96b6f295
Setup NPM instead of a different handlebar version
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-10-01 10:32:00 +02:00
Daniel Calviño Sánchez 83b5469f55 Add acceptance tests for Talk sidebar in public share page to Drone
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-09-26 10:54:27 +02:00
Daniel Calviño Sánchez c180a412a8 Add acceptance tests for lobby to Drone
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-08-29 12:28:01 +02:00
Daniel Calviño Sánchez a8804bc394 Add acceptance tests for public conversations to Drone
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-07-30 20:30:33 +02:00
Joas Schilling 2a942d6ab0
Only run php, integration and acceptance tests when required
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-07-16 10:20:48 +02:00
Joas Schilling f60246c017
Check VueJS builds as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-07-12 12:00:32 +02:00
Joas Schilling 1140f9ed4e
Check if SimpleWebRTC is bundled correctly
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-07-12 12:00:32 +02:00
Joas Schilling 2cb96a19ad
Adjust drone config for Drone 1.0
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-04-08 12:22:20 +02:00
Roeland Jago Douma 599da4df0b
Use DCO bot for signoff checks
Faster and saves drone resources

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-03-18 11:18:55 +01:00
Daniel Calviño Sánchez 96bab15f12 Add acceptance tests for public share authentication page to Drone
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-05 16:48:03 +01:00
Daniel Calviño Sánchez b1b941f5d2 Add acceptance tests for Files app to Drone
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-01 16:47:51 +01:00
Daniel Calviño Sánchez 3c69f0df31 Add acceptance tests for room shares to Drone
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-02-01 09:52:51 +01:00
Joas Schilling f65463f715
Update testing matrix
- php7.0 is no longer supported on master
- php7.3 is now supported on master

Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-01-10 10:21:41 +01:00
Joas Schilling 128d4a4a63
Test against master again
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-12-07 18:37:21 +01:00
Joas Schilling 0a39d9d0a4
Split up running of the integration tests so they don't timeout
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-12-06 14:49:26 +01:00
Joas Schilling a74baaed4b
Test against 15 for now
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-11-28 15:14:56 +01:00
Daniel Calviño Sánchez e629363dea Add Drone step to check the Handlebars templates
Now if the source templates were modified but their compiled versions
were not updated the Drone job will fail.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-11-21 12:02:39 +01:00
Daniel Calviño Sánchez ce32abe48b Fix integration tests with Docker image for PostgreSQL 10.5
The `postgres:10` tag is not fixed, but updated every time a new
`postgres:10.X` image is released. Thus, the integration tests run in
Drone always use the latest Docker image for PostgreSQL 10.

The parameters used for the Docker container of PostgreSQL relied on a
bug in both the Nextcloud installer and in the Docker image for
PostgreSQL; the bug in the image was fixed in "postgres:10.5", so the
tests started to fail due to not being able to install Nextcloud.

The database user created in the image did not have "create role"
privileges, so that user was the one used by the Nextcloud installer.
After the fix it does, so the Nextcloud installer creates and uses a new
user instead. However, if an existing database name is given to the
installer the installer does not grant privileges to that new user on
the existing database.

By default the container creates a new database with the same name as
the database user ("oc_autotest"), and that database was passed to the
installer. Thus, as the new user was not granted privileges on the
existing database it could not connect to it and the installation failed.

Now the container creates a dummy database with a different name to the
one passed to the installer, so now the "oc_autotest" database is
created by the installer and the new user is made owner of that new
database.

Note that this fix is backwards compatible with PostgreSQL images prior
to the fix, so no special handling is needed in `run-docker.sh` when
older images are used.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-09-21 14:48:11 +02:00
Daniel Calviño Sánchez 5c52c595c8
Test against master again
Now that the requirement was updated to 15 it is necessary to test again
against current master.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-09-19 16:49:04 +02:00
Joas Schilling ca8b2ca273
Revert "Update requirement to 15" 2018-09-19 16:46:05 +02:00
Daniel Calviño Sánchez 563345ca12 Test against master again
Now that the requirement was updated to 15 it is necessary to test again
against current master.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-09-19 08:40:43 +02:00
Joas Schilling d780275052
Test against stable14 for now
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-09-06 10:44:33 +02:00
Joas Schilling 9c5d18144f
Move to phpunit 6.5+ (same as server)
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-07-26 12:54:00 +02:00
Daniel Calviño Sánchez fbe96fdfe5 Add acceptance tests for chat to Drone
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-04-20 15:48:28 +02:00
Ivan Sein 0c159d5b7f
Merge pull request #768 from nextcloud/add-acceptance-tests
Add acceptance tests
2018-04-13 10:34:34 +02:00
Morris Jobke dc57803052
Fix drone config
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2018-04-12 16:44:09 +02:00
Daniel Calviño Sánchez 137e7c6727 Run the acceptance tests for conversations in Drone
The acceptance tests requires the grandparent directory of the root
directory of the app to be the root directory of the Nextcloud server.
Drone only clones the app repository, so the Nextcloud server repository
has to be explicitly cloned and the app moved to the "apps" directory
before the tests are run.

Besides that, as the acceptance tests need to be run on Apache,
"/var/www/html" has to be linked to the root directory of the Nextcloud
server.

Once all that is done the tests can be run in the same way that they are
run in Drone for the Nextcloud server but just specifying the acceptance
tests directory too.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-04-11 11:35:59 +02:00
Daniel Calviño Sánchez a86e2268cf Run integration tests in PostgreSQL 10 too
The values of the PostgreSQL environment variables must match those used
in "travis_ci/core_install.sh" when the server is installed.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-02-12 13:26:35 +01:00
Daniel Calviño Sánchez 692b5a1cad Run integration tests in MySQL 5.7 too
The values of the MySQL environment variables must match those used in
"travis_ci/core_install.sh" when the server is installed.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-02-12 13:25:16 +01:00
Daniel Calviño Sánchez 02e6216f6a Move DB environment variable from task to build matrix
This will make possible in a following commit to run the integration
tests in other databases by extending the build matrix.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-02-12 13:25:16 +01:00
Joas Schilling 5d2f0d6f61
Make master work against Nextcloud 14
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-01-26 12:20:47 +01:00