jenkins-bot has submitted this change and it was merged.
Change subject: Enable logging on travis-ci builds ......................................................................
Enable logging on travis-ci builds
The logfilesize should be sufficient for all logging to be captured in a single file, but in the offchance that it overflows, also list the log files so the size can be increased when required.
Bug 56964
Change-Id: If19e82f0c447c6e99959211203b91bbee936cb8c --- M .travis.yml 1 file changed, 9 insertions(+), 0 deletions(-)
Approvals: John Vandenberg: Looks good to me, but someone else must approve Merlijn van Deen: Looks good to me, approved jenkins-bot: Verified
diff --git a/.travis.yml b/.travis.yml index 9a89d86..5f12f0f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,10 @@ - echo "family = 'wikipedia'" >> ~/.pywikibot/user-config.py - echo "usernames['wikipedia']['en'] = 'Pywikibot-test'" >> ~/.pywikibot/user-config.py - echo "password_file = os.path.expanduser('~/.pywikibot/passwordfile')" >> ~/.pywikibot/user-config.py + - echo "debug_log.append('')" >> ~/.pywikibot/user-config.py + - echo "log.append('*')" >> ~/.pywikibot/user-config.py + - echo "logfilename = 'tests.log'" >> ~/.pywikibot/user-config.py + - echo "logfilesize = 10000" >> ~/.pywikibot/user-config.py
- touch ~/.pywikibot/passwordfile - echo "('Pywikibot-test', '"$USER_PASSWORD"')" > ~/.pywikibot/passwordfile @@ -23,6 +27,11 @@
script: - python setup.py test + - echo '=============' + - echo '==== LOG ==== + - ls ~/.pywikibot/logs/* + - echo '=============' + - sed -e "s/lgpassword=([^&]*)/lgpassword=xxxxxxx/g" ~/.pywikibot/logs/tests.log
env: global:
pywikibot-commits@lists.wikimedia.org