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

42 Коммитов

Автор SHA1 Сообщение Дата
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
Joas Schilling eff821d926
No more CodeCov
Signed-off-by: Joas Schilling <coding@schilljs.com>
2017-09-25 17:23:57 +02:00
Daniel Calviño Sánchez b53198fe6c Use a newer version of the nextcloudci/php7.1 Docker image in Drone
The "php7.1" and "php7.1-integration" tests are not actually being run
in Drone; when the command "more ./tests/autoconfig-oracle.php" is
executed by "core_install.sh" the execution of the remaining Drone
commands is broken (strange... probably some black magic related to TTYs
or something like that), and thus the tests are not run (although no
error is issued, so it wrongly seems that they were successful).

The problem occurs on CentOS based Docker images, but not on Debian
based ones. Therefore, the base images for the "php7.1" and
"php7.1-integration" tests were changed to use a newer version of the
"nextcloudci/php7.1" image, which is now based on Debian instead of
CentOS like the older ones.

This also removes the need of installing "wget", as it is already
included in the newer image too.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-09-14 13:07:28 +02:00
Joas Schilling 0a7eb61808
Run all other tests aswell
Signed-off-by: Joas Schilling <coding@schilljs.com>
2017-08-07 12:53:58 +02:00
Joas Schilling e263e4565b
Add execution to drone
Signed-off-by: Joas Schilling <coding@schilljs.com>
2017-08-07 12:53:57 +02:00
Joas Schilling 7079c6eb2f
Only check the syntax of the spreed app
Signed-off-by: Joas Schilling <coding@schilljs.com>
2017-07-25 10:35:53 +02:00
Joas Schilling 73fead9e15
Enable app before running tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
2017-01-13 15:34:54 +01:00
Christoph Wurst 108ca00c16
add karma/jasmine config for js unit testing
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2016-10-18 15:22:47 +02:00
Lukas Reschke 10e175cc5e
Add first unit tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-10-17 22:40:50 +02:00
Lukas Reschke e620e508ca
Strict comparison 2016-10-17 11:38:17 +02:00
Lukas Reschke a49858424f
Add appcode checker 2016-10-17 11:35:30 +02:00
Joachim Bauch 0e0b2cb05d Check JavaScript / CSS files for errors/style using Drone CI (#42). 2016-10-14 14:39:10 +02:00