jenkins-bot has submitted this change and it was merged.
Change subject: Have TravisCI run the tests ......................................................................
Have TravisCI run the tests
Change-Id: I5303f58ba3fcbd89308ed970f2ca0fa3b517bf06 --- A .travis.yml 1 file changed, 32 insertions(+), 0 deletions(-)
Approvals: Legoktm: Looks good to me, approved jenkins-bot: Verified
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2aa12d1 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,32 @@ +python: + - '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'] = 'Pywikibot-test'" > ~/.pywikibot/user-config.py + - echo "password_file = ./passwordfile" > ~/.pywikibot/user-config.py + + - touch ~/.pywikibot/passwordfile + - echo "('Pywikibot-test', '"$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... + # Command use to generate: travis encrypt USER_PASSWORD=<pwd> -r wikimedia/pywikibot-core + - secure: kofInMlisiTBt9o/Ustc/vySlkKfxGzGCX2LwA1D2waym8sDTS0o5gMJ5LsrT/BUKwZbe1vLozPHqZrrkQvsdTml+DpZuotzdILs0m0f3BUoexEC6OON5IDljuxFyETrD1Ug44ih5Mc4lVFOdTcBzg501ZmswGwQrBvg/OyEFfE= + +notifications: + irc: + channels: + - "chat.freenode.net#pywikipediabot" + on_success: change + on_failure: always \ No newline at end of file