Zfilipin has uploaded a new change for review.
https://gerrit.wikimedia.org/r/300035
Change subject: WIP Run language screenshots script for VisualEditor in Jenkins
......................................................................
WIP Run language screenshots script for VisualEditor in Jenkins
Created job: language-screenshots-VisualEditor
Bug: T139613
Change-Id: Ifcad1c6d745fe92ad501f070c5300ce1add5fe5b
---
A jjb/job-templates-language-screenshots.yaml
A jjb/language-screenshots.yaml
2 files changed, 127 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/integration/config
refs/changes/35/300035/1
diff --git a/jjb/job-templates-language-screenshots.yaml
b/jjb/job-templates-language-screenshots.yaml
new file mode 100644
index 0000000..58fec9d
--- /dev/null
+++ b/jjb/job-templates-language-screenshots.yaml
@@ -0,0 +1,120 @@
+- job-template:
+ name: 'language-screenshots-{name}'
+ project-type: matrix
+ #path_to_ci_yml: build/screenshots.yml
+ path_to_ci_yml: modules/ve-mw/tests/browser/ci.yml
+ yaml-strategy:
+ exclude-key: 'exclude'
+ filename: '{path_to_ci_yml}'
+ axes:
+ - axis:
+ type: label-expression
+ name: label
+ values:
+ - ci-jessie-wikimedia
+ - axis:
+ name: BROWSER
+ type: yaml
+ filename: '{path_to_ci_yml}'
+ - axis:
+ name: MEDIAWIKI_ENVIRONMENT
+ type: yaml
+ filename: '{path_to_ci_yml}'
+ - axis:
+ name: PLATFORM
+ type: yaml
+ filename: '{path_to_ci_yml}'
+
+ node: ci-jessie-wikimedia
+ repository_host: 'gerrit.wikimedia.org/r'
+
+ logrotate:
+ daysToKeep: 31 # ~ 2 * 2 weeks sprints
+
+ scm:
+ - git:
+ url: https://{repository_host}/{repository}
+ branches:
+ - master
+ wipe-workspace: false # keep the workspace...
+ clean:
+ after: true # ... and use git clean instead
+ prune: true # prune remote obsoletes branches
+ submodule:
+ recursive: true
+
+ builders:
+ - shell: |
+ # credentials
+ export SAUCE_ONDEMAND_USERNAME=wikimedia-jenkins
+ if [[ "$MEDIAWIKI_ENVIRONMENT" == "beta"* ]]; then
+ echo MEDIAWIKI_PASSWORD="\$selenium_user_beta"
+ set +x
+ export MEDIAWIKI_PASSWORD="$selenium_user_beta"
+ set -x
+ elif [ "$MEDIAWIKI_ENVIRONMENT" = "mediawiki" ] || [
"$MEDIAWIKI_ENVIRONMENT" = "test" ]; then
+ echo MEDIAWIKI_PASSWORD="\$selenium_user_production"
+ set +x
+ export MEDIAWIKI_PASSWORD="$selenium_user_production"
+ set -x
+ else
+ echo "MEDIAWIKI_ENVIRONMENT $MEDIAWIKI_ENVIRONMENT not supported!"
+ exit 1
+ fi
+
+ # installed dependencies
+ node -v
+ npm -v
+ /usr/lib/chromium/chromedriver -v
+ /usr/lib/chromium/chromium --version
+
+ # install npm dependencies
+ npm install
+
+ # add chromedriver to PATH
+ PATH=/usr/lib/chromium:$PATH
+ which chromedriver
+
+ # screenshot all the things
+ node_modules/.bin/grunt screenshots
+
+ # install ruby dependencies
+ export BUNDLE_PATH='/home/jenkins/workspace/vendor/bundle'
+ bundle install --verbose
+
+ # upload all the things
+ export
MEDIAWIKI_API_UPLOAD_URL=http://commons.wikimedia.beta.wmflabs.org/w/api.php
+ export MEDIAWIKI_USER=Selenium_user
+ export LANGUAGE_SCREENSHOT_CATEGORY=VisualEditor-en
+ export LANGUAGE_SCREENSHOT_CODE=en
+ bundle exec upload
+
+ publishers:
+ - email-ext:
+ recipients: '{recipients}'
+ body: '${{SCRIPT, template="wikimedia.template"}}'
+
+ - browsertests-irc
+
+ - claim-build
+
+ - archive:
+ artifacts: 'screenshots/*.png'
+
+ wrappers:
+ - ansicolor
+ - timeout:
+ timeout: 180
+ - timestamps
+ # Wiki usernames and passwords are hold in Jenkins credentials store
+ # https://integration.wikimedia.org/ci/credential-store/domain/selenium/
+ - credentials-binding:
+ - text:
+ credential-id: selenium-user-beta
+ variable: selenium_user_beta
+ - text:
+ credential-id: selenium-user-production
+ variable: selenium_user_production
+ - text:
+ credential-id: sauce-ondemand-access-key
+ variable: SAUCE_ONDEMAND_ACCESS_KEY
diff --git a/jjb/language-screenshots.yaml b/jjb/language-screenshots.yaml
new file mode 100644
index 0000000..621c291
--- /dev/null
+++ b/jjb/language-screenshots.yaml
@@ -0,0 +1,7 @@
+- project:
+ name: VisualEditor
+ recipients: [email protected]
+ repository: mediawiki/extensions/VisualEditor
+
+ jobs:
+ - 'language-screenshots-{name}'
--
To view, visit https://gerrit.wikimedia.org/r/300035
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifcad1c6d745fe92ad501f070c5300ce1add5fe5b
Gerrit-PatchSet: 1
Gerrit-Project: integration/config
Gerrit-Branch: master
Gerrit-Owner: Zfilipin <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits