Legoktm has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/78483


Change subject: Use absolute path to password file
......................................................................

Use absolute path to password file

Change-Id: Idbd1250a24cc8cf4ffccb67fef0e8cb146d6969f
---
M .travis.yml
1 file changed, 3 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/83/78483/1

diff --git a/.travis.yml b/.travis.yml
index 2aa12d1..21b46e9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,10 +5,11 @@
   - mkdir ~/.pywikibot
 
   - touch ~/.pywikibot/user-config.py
+  - echo "import os" > ~/.pywikibot/user-config.py
   - echo "mylang = 'en'" > ~/.pywikibot/user-config.py
   - echo "family = 'wikipedia'" > ~/.pywikibot/user-config.py
   - echo "usernames['wikipedia']['en'] = 'Pywikibot-test'" > 
~/.pywikibot/user-config.py
-  - echo "password_file = ./passwordfile" > ~/.pywikibot/user-config.py
+  - echo "password_file = os.path.expanduser('~/.pywikibot/passwordfile')" > 
~/.pywikibot/user-config.py
 
   - touch ~/.pywikibot/passwordfile
   - echo "('Pywikibot-test', '"$USER_PASSWORD"')" > ~/.pywikibot/passwordfile
@@ -29,4 +30,4 @@
     channels:
       - "chat.freenode.net#pywikipediabot"
     on_success: change
-    on_failure: always
\ No newline at end of file
+    on_failure: always

-- 
To view, visit https://gerrit.wikimedia.org/r/78483
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idbd1250a24cc8cf4ffccb67fef0e8cb146d6969f
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to