John Vandenberg has submitted this change and it was merged.
Change subject: Allow github forks to run travis nosetests builds ......................................................................
Allow github forks to run travis nosetests builds
The wiki user 'Pywikibot-test' only works on the 'wikimedia' travis-ci account. This prevents forks of the gibhub from running tests on travis-ci with the original codebase.
nosetests support was added recently, and can be used to run only tests which do not access the Wikimedia sites or other Internet services.
Change-Id: I0f22caaf8b5cd314a196a5e3cc25ae830231ccb5 --- M .travis.yml 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: John Vandenberg: Verified; Looks good to me, approved jenkins-bot: Verified
diff --git a/.travis.yml b/.travis.yml index 84833d7..f395eaf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,6 +10,7 @@
install: - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install ordereddict; fi + - export GITHUB_USER=`echo $TRAVIS_REPO_SLUG | cut -d '/' -f 1` - mkdir ~/.pywikibot
- touch ~/.pywikibot/user-config.py @@ -28,7 +29,7 @@ - cd ../..
script: - - python setup.py test + - if [ "$GITHUB_USER" = 'wikimedia' ]; then python setup.py test; else PYWIKIBOT2_NO_USER_CONFIG=1 nosetests -a '!site,!net' -v ; fi
env: global:
pywikibot-commits@lists.wikimedia.org