Skip to content

Instantly share code, notes, and snippets.

@jayvdb
Created August 8, 2014 20:51
Show Gist options
  • Save jayvdb/a60f66b97376450bb0e0 to your computer and use it in GitHub Desktop.
Save jayvdb/a60f66b97376450bb0e0 to your computer and use it in GitHub Desktop.
pywikibot-core travis user-config.py
import os
family = os.environ.get('FAMILY', 'wikipedia')
mylang = os.environ.get('LANGUAGE', 'en')
if os.environ.get('TRAVIS_REPO_SLUG', None) == 'wikimedia/pywikibot-core':
usernames[family][mylang] = 'Pywikibot-test'
usernames['wikipedia']['en'] = 'Pywikibot-test'
password_file = os.path.expanduser('~/.pywikibot/passwordfile')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment