Browse Source

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>
pull/768/head
Daniel Calviño Sánchez 8 years ago
parent
commit
137e7c6727
  1. 26
      .drone.yml

26
.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
Loading…
Cancel
Save