Jeroen De Dauw has uploaded a new change for review.

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


Change subject: Have TravisCI run the tests [DO NOT MERGE]
......................................................................

Have TravisCI run the tests [DO NOT MERGE]

Still has some todos

Change-Id: I5303f58ba3fcbd89308ed970f2ca0fa3b517bf06
---
A .travis.yml
1 file changed, 29 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/81/78481/1

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..0855015
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,29 @@
+python:
+  # TODO: set this to all python versions supported by pywikibot
+  - '2.6'
+  - '2.7'
+
+install:
+  - mkdir ~/.pywikibot
+
+  - touch ~/.pywikibot/user-config.py
+  - echo "mylang = 'en'" > ~/.pywikibot/user-config.py
+  - echo "family = 'wikipedia'" > ~/.pywikibot/user-config.py
+  - echo "usernames['wikipedia']['en'] = 'Test'" > ~/.pywikibot/user-config.py
+  # TODO: figure out how the password file should be specified, the below is a 
guess
+  - echo "passwordfile = ./passwordfile" > ~/.pywikibot/user-config.py
+
+  - touch ~/.pywikibot/passwordfile
+  - echo $USER_PASSWORD > ~/.pywikibot/passwordfile
+
+script:
+  - python setup.py test
+
+env:
+  global:
+    # This is the encrypted password, which can only be decrypted by Travis 
itself
+    # See http://about.travis-ci.org/docs/user/encryption-keys/
+    # And 
http://about.travis-ci.org/docs/user/build-configuration/#Secure-environment-variables
+    # Command use to generate: travis encrypt USER_PASSWORD=<pwd> -r 
wikimedia/pywikibot-core
+    # TODO: generate with the actual password for the test user that will be 
used
+    - secure: 
ksCacXMLyDg9NuGhSiCsVhyUhrovD5NA81NX1Ey4OM4ecUJOXlpDXBznvXmoz1f1I/3NbDxT3aLuISwCs2CCk9sVMNKOobuKpvp5eYYMLaX6kX/6QUQaWvsF2gUVxYocAwT9fCYyv3G9AeMTIdtJkZm8jZNkHGKFuw2E3P/2X5M=

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5303f58ba3fcbd89308ed970f2ca0fa3b517bf06
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <[email protected]>

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

Reply via email to