update .travis.yml

- restrict builds to master branch and release tags
- implement 'core' and 'results' test categories
This commit is contained in:
Mike Fährmann
2018-03-19 17:57:32 +01:00
parent 3905474805
commit 8ef790de12
3 changed files with 48 additions and 14 deletions

View File

@@ -21,11 +21,12 @@ TRAVIS_SKIP = {
# temporary issues, etc.
BROKEN = {
"mangapark",
"puremashiro", # online reader down
}
class TestExtractors(unittest.TestCase):
class TestExtractorResults(unittest.TestCase):
def setUp(self):
name = "gallerydl"
@@ -159,7 +160,7 @@ def generate_tests():
)
]
# add 'test_...' methods to TestExtractors
# add 'test_...' methods
for extr in extractors:
if not hasattr(extr, "test") or not extr.test:
continue
@@ -167,7 +168,7 @@ def generate_tests():
for num, tcase in enumerate(extr.test, 1):
test = _generate_test(extr, tcase)
test.__name__ = name + str(num)
setattr(TestExtractors, test.__name__, test)
setattr(TestExtractorResults, test.__name__, test)
generate_tests()