@@ -2442,58 +2442,3 @@ trigger:
24422442 - pull_request
24432443 - push
24442444
2445- ---
2446- kind : pipeline
2447- name : ui-regression
2448-
2449- steps :
2450- - name : submodules
2451- image : docker:git
2452- commands :
2453- - git submodule update --init
2454- - name : ui-regression
2455- image : nextcloudci/ui-regression:ui-regression-1
2456- commands :
2457- - cd tests/ui-regression
2458- - npm install
2459- - chown -R pptruser out node_modules
2460- - bash -c "until curl -s http://ui-regression-php-master > /dev/null && curl -s http://ui-regression-php > /dev/null; do sleep 2; done"
2461- - sudo -u pptruser node runTests.js || true
2462- - echo "The result can be found at https://s3.bitgrid.net/nextcloud-ui-regression/nextcloud/server/${DRONE_PULL_REQUEST}/index.html"
2463- shm_size : ' 1gb'
2464-
2465- services :
2466- - name : ui-regression-php
2467- image : nextcloudci/server:server-1
2468- commands :
2469- - . /etc/apache2/envvars
2470- - rm -fr /var/www/html
2471- - mkdir /var/www/html && cp -rT . /var/www/html && chown -R www-data:www-data /var/www/html
2472- - rm -fr /var/www/html/config/config.php /var/www/html/data/*
2473- - apache2 -DFOREGROUND
2474- - name : ui-regression-php-master
2475- image : nextcloudci/server:server-1
2476- commands :
2477- - . /etc/apache2/envvars
2478- - rm -fr /var/www/html/config/config.php /var/www/html/data/*
2479- - su www-data -c "cd /var/www/html/ && git checkout $DRONE_REPO_BRANCH && git pull && git submodule update"
2480- - apache2 -DFOREGROUND
2481- - name : publish-s3
2482- image : plugins/s3
2483- settings :
2484- endpoint : https://ci-assets.nextcloud.com
2485- bucket : nextcloud-ui-regression
2486- path_style : true
2487- source : tests/ui-regression/out/**/*
2488- strip_prefix : tests/ui-regression/out/
2489- acl : public-read
2490- target : ${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/${DRONE_PULL_REQUEST}
2491- secrets : [ aws_access_key_id, aws_secret_access_key ]
2492-
2493- trigger :
2494- branch :
2495- - master
2496- - stable*
2497- event :
2498- - pull_request
2499- - push
0 commit comments