Skip to content

Instantly share code, notes, and snippets.

@jdlrobson
Last active November 10, 2016 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdlrobson/9e97205d232a70967f97675b8f2209a5 to your computer and use it in GitHub Desktop.
Save jdlrobson/9e97205d232a70967f97675b8f2209a5 to your computer and use it in GitHub Desktop.
Explanation of how to run the

You can easily set up an instance of Weekipedia for this purpose on heroku.

Configure your instance of Weekipedia like so:

export DEV_DUMMY_USER=
export HOST_SUFFIX=.beta.wmflabs.org
export SERVER_SIDE_RENDERING=1
export SITE_PRIVACY_URL=//wikimediafoundation.org/wiki/Privacy_policy
export SITE_EXPAND_ARTICLE=1
export SITE_EXPAND_SECTIONS=0
export SITE_EXPAND_SECTIONS_TABLET=1
export NODE_ENV=production
export MEDIAWIKI_COMPATIBILITY_MODE=1
export USE_POLYFILLS=1
export DEV_DUMMY_USER=0
export TABLE_OF_CONTENTS=1

Clone an instance of MobileFrontend browser tests and enable Travis.

Configure it on Travis like so:

export MEDIAWIKI_URL=https://weekipediatest.herokuapp.com/wiki/
export MEDIAWIKI_API_URL=https://en.wikipedia.beta.wmflabs.org/w/api.php
export MEDIAWIKI_ENVIRONMENT=beta
export MEDIAWIKI_USER=<must exist on https://en.wikipedia.beta.wmflabs.org>
export MEDIAWIKI_PASSWORD=<password for account on https://en.wikipedia.beta.wmflabs.org>
bundle exec cucumber features/ --tags ~@login --tags ~@feature-anon-editing-support --tags ~@adminuser --tags @chrome

If all works correctly things should be green!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment