summaryrefslogtreecommitdiffstats
path: root/.drone.yml
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-04-10 20:33:00 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-04-11 11:35:59 +0200
commit137e7c67273b9e99e277a2cbe33c55fd5adb0d15 (patch)
treec2c5fb50eb8f17e198d939d1163aaa867d469f22 /.drone.yml
parentc23d9c2ad47f16f7382328b68a5d101cac4f613a (diff)
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>
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index 81c6bf22f..b864bb766 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -150,6 +150,21 @@ pipeline:
when:
matrix:
TESTS: jsunit
+ acceptance-conversation:
+ image: nextcloudci/acceptance-php7.1:acceptance-php7.1-2
+ commands:
+ # Pre-setup steps
+ - git clone --depth 1 -b master https://github.com/nextcloud/server ../server
+ - cp -R . ../server/apps/spreed
+ - cd ../server
+ - git submodule update --init
+ - ln --symbolic `pwd` /var/www/html
+
+ # Run acceptance tests
+ - tests/acceptance/run-local.sh --acceptance-tests-dir apps/spreed/tests/acceptance --timeout-multiplier 10 --nextcloud-server-domain acceptance-conversation --selenium-server selenium:4444 allow-git-repository-modifications features/conversation.feature
+ when:
+ matrix:
+ TESTS-ACCEPTANCE: conversation
matrix:
include:
@@ -170,6 +185,8 @@ matrix:
DB: pgsql
DATABASEHOST: postgres-10
- TESTS: jsunit
+ - TESTS: acceptance
+ TESTS-ACCEPTANCE: conversation
services:
mysql-5.7:
@@ -190,3 +207,12 @@ services:
when:
matrix:
DATABASEHOST: postgres-10
+ selenium:
+ image: selenium/standalone-firefox:2.53.1-beryllium
+ environment:
+ # Reduce default log level for Selenium server (INFO) as it is too
+ # verbose.
+ - JAVA_OPTS=-Dselenium.LOGGER.level=WARNING
+ when:
+ matrix:
+ TESTS: acceptance