summaryrefslogtreecommitdiffstats
path: root/.drone.yml
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-02-14 15:04:08 +0100
committerJulius Härtl <jus@bitgrid.net>2018-07-29 22:51:58 +0200
commit33f26c8da236761a41b874421ba07979ab1d5bbf (patch)
tree227aa105bbad4db9637301c72c77ca57bab28daa /.drone.yml
parent0c7a17795bc553cbee8e0169e2db4c41c1d6e765 (diff)
downloadnextcloud-server-33f26c8da236761a41b874421ba07979ab1d5bbf.tar.gz
nextcloud-server-33f26c8da236761a41b874421ba07979ab1d5bbf.zip
Frontend regression testing with puppeteer
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml48
1 files changed, 48 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index 709079bac01..2bcc1e281ab 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -703,6 +703,32 @@ pipeline:
when:
matrix:
TEST: memcache-redis-cluster
+ ui-regression:
+ image: nextcloudci/ui-regression:ui-regression-1
+ commands:
+ - cd tests/ui-regression
+ - npm install
+ - chown -R pptruser out node_modules
+ - bash -c "until curl -s http://ui-regression-php-master > /dev/null && curl -s http://ui-regression-php > /dev/null; do sleep 2; done"
+ - sudo -u pptruser node runTests.js || true
+ - echo "The result can be found at https://s3.bitgrid.net/nextcloud-ui-regression/nextcloud/server/${DRONE_PULL_REQUEST}/index.html"
+ shm_size: '1gb'
+ when:
+ matrix:
+ TESTS: ui-regression
+ publish-s3:
+ image: plugins/s3
+ endpoint: https://s3.bitgrid.net/
+ bucket: nextcloud-ui-regression
+ path_style: true
+ source: tests/ui-regression/out/**/*
+ strip_prefix: tests/ui-regression/out/
+ acl: public-read
+ target: ${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/${DRONE_PULL_REQUEST}
+ secrets: [ aws_access_key_id, aws_secret_access_key ]
+ when:
+ matrix:
+ TESTS: ui-regression
matrix:
include:
- TESTS: checkers
@@ -848,6 +874,7 @@ matrix:
ENABLE_REDIS_CLUSTER: true
- TESTS: sqlite-php7.0-webdav-apache
ENABLE_REDIS: true
+ - TESTS: ui-regression
services:
cache:
@@ -855,6 +882,27 @@ services:
when:
matrix:
ENABLE_REDIS: true
+ ui-regression-php:
+ image: nextcloudci/server:server-1
+ commands:
+ - . /etc/apache2/envvars
+ - rm -fr /var/www/html
+ - mkdir /var/www/html && cp -rT . /var/www/html && chown -R www-data:www-data /var/www/html
+ - rm -fr /var/www/html/config/config.php /var/www/html/data/*
+ - apache2 -DFOREGROUND
+ when:
+ matrix:
+ TESTS: ui-regression
+ ui-regression-php-master:
+ image: nextcloudci/server:server-1
+ commands:
+ - . /etc/apache2/envvars
+ - rm -fr /var/www/html/config/config.php /var/www/html/data/*
+ - su www-data -c "cd /var/www/html/ && git checkout $DRONE_REPO_BRANCH && git pull && git submodule update"
+ - apache2 -DFOREGROUND
+ when:
+ matrix:
+ TESTS: ui-regression
cache-cluster:
image: morrisjobke/redis-cluster
when: