Zfilipin has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/352602 )
Change subject: WIP Run WebdriverIO tests in CI for extensions ...................................................................... WIP Run WebdriverIO tests in CI for extensions Bug: T164721 Change-Id: Idf5700f09eaf19b507d610c0f5b17e7a8816e996 --- M jjb/macro.yaml M jjb/mediawiki.yaml 2 files changed, 21 insertions(+), 16 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/integration/config refs/changes/02/352602/1 diff --git a/jjb/macro.yaml b/jjb/macro.yaml index 65715f6..90eeca3 100644 --- a/jjb/macro.yaml +++ b/jjb/macro.yaml @@ -319,6 +319,26 @@ npm install ./node_modules/.bin/grunt karma:main +- builder: + name: wdio + - shell: | + # Run selenium script if it exists. The localhost vhost is setup by + # qunit-karma already + - shell: | + . /srv/deployment/integration/slave-scripts/bin/mw-set-env-localhost.sh + + cd $MW_INSTALL_PATH + if [ -f ./tests/selenium/wdio.conf.js ]; then + chromedriver --url-base=/wd/hub --port=4444 & + # Make sure it is killed to prevent file descriptors leak + function kill_chromedriver() {{ + killall chromedriver > /dev/null + }} + trap kill_chromedriver EXIT + + ./node_modules/.bin/grunt webdriver:test + fi + - publisher: name: localhost-cleanup publishers: diff --git a/jjb/mediawiki.yaml b/jjb/mediawiki.yaml index 7608964..9567da5 100644 --- a/jjb/mediawiki.yaml +++ b/jjb/mediawiki.yaml @@ -43,22 +43,7 @@ - castor-load - prepare-mediawiki-zuul-project - qunit-karma - # Run selenium script if it exists. The localhost vhost is setup by - # qunit-karma already - - shell: | - . /srv/deployment/integration/slave-scripts/bin/mw-set-env-localhost.sh - - cd $MW_INSTALL_PATH - if [ -f ./tests/selenium/wdio.conf.js ]; then - chromedriver --url-base=/wd/hub --port=4444 & - # Make sure it is killed to prevent file descriptors leak - function kill_chromedriver() {{ - killall chromedriver > /dev/null - }} - trap kill_chromedriver EXIT - - ./node_modules/.bin/grunt webdriver:test - fi + - wdio publishers: - castor-save - archive-log-dir -- To view, visit https://gerrit.wikimedia.org/r/352602 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Idf5700f09eaf19b507d610c0f5b17e7a8816e996 Gerrit-PatchSet: 1 Gerrit-Project: integration/config Gerrit-Branch: master Gerrit-Owner: Zfilipin <zfili...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits