jenkins-bot has submitted this change and it was merged.
Change subject: Add betawiki to the Travis build matrix ......................................................................
Add betawiki to the Travis build matrix
The beta wiki sites have significant failures in two tests, so they are skipped.
Bug: T100796 Change-Id: I1f7f609bcb22113301f4f205d981b3f4ae9c6301 --- M .travis.yml M tests/page_tests.py M tests/site_tests.py 3 files changed, 12 insertions(+), 0 deletions(-)
Approvals: XZise: Looks good to me, approved VcamX: Looks good to me, but someone else must approve jenkins-bot: Verified
diff --git a/.travis.yml b/.travis.yml index 4ed39c1..87067e3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -48,6 +48,10 @@
- python pwb.py generate_family_file 'https://test.orain.org/' oraintest - python pwb.py generate_family_file 'https://wiki.musicbrainz.org/' musicbrainz + - if [[ $FAMILY == 'wpbeta' ]]; then + python -m generate_family_file 'http://%27$LANGUAGE%27.wikipedia.beta.wmflabs.org/' 'wpbeta' 'y' ; + fi + - python -W error::UserWarning -m generate_user_files -dir:~/.pywikibot/ -family:$FAMILY -lang:$LANGUAGE -v -user:"$PYWIKIBOT2_USERNAME"
- if [[ -n "$USER_PASSWORD" && -n "$PYWIKIBOT2_USERNAME" ]]; then @@ -97,6 +101,10 @@ - python: '2.7_with_system_site_packages' # equivalent to virtualenv: system_site_packages: true env: LANGUAGE=he FAMILY=wikivoyage SITE_ONLY=1 - python: '2.7' + env: LANGUAGE=en FAMILY=wpbeta SITE_ONLY=1 + - python: '3.4' + env: LANGUAGE=zh FAMILY=wpbeta SITE_ONLY=1 + - python: '2.7' env: LANGUAGE=wikia FAMILY=wikia PYWIKIBOT2_TEST_NO_RC=1 - python: '3.3' env: LANGUAGE=en FAMILY=oraintest SITE_ONLY=1 diff --git a/tests/page_tests.py b/tests/page_tests.py index ae983a6..087bc14 100644 --- a/tests/page_tests.py +++ b/tests/page_tests.py @@ -459,6 +459,8 @@ break
def testLinks(self): + if self.site.family.name == 'wpbeta': + raise unittest.SkipTest('Test fails on betawiki; T69931') mainpage = self.get_mainpage() for p in mainpage.linkedPages(): self.assertIsInstance(p, pywikibot.Page) diff --git a/tests/site_tests.py b/tests/site_tests.py index 0b9c726..e089e62 100644 --- a/tests/site_tests.py +++ b/tests/site_tests.py @@ -380,6 +380,8 @@
def testLinkMethods(self): """Test site methods for getting links to and from a page.""" + if self.site.family.name == 'wpbeta': + raise unittest.SkipTest('Test fails on betawiki; T69931') mysite = self.get_site() mainpage = self.get_mainpage() backlinks = set(mysite.pagebacklinks(mainpage, namespaces=[0]))
pywikibot-commits@lists.wikimedia.org