Skip to content

Commit

Permalink
Merge pull request #20 from josephw/use-travis
Browse files Browse the repository at this point in the history
Use travis
  • Loading branch information
rubys committed Jan 27, 2016
2 parents 14e137a + a7c1357 commit db75dac
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
@@ -0,0 +1,5 @@
language: python
python:
- "2.6"
script:
- python runtest.py
4 changes: 3 additions & 1 deletion runtest.py
Expand Up @@ -23,4 +23,6 @@
suite = unittest.TestSuite()
for module in modules:
suite.addTest(__import__(module).buildTestSuite())
unittest.TextTestRunner().run(suite)
ttr = unittest.TextTestRunner().run(suite)
if not ttr.wasSuccessful():
sys.exit(10)
1 change: 0 additions & 1 deletion src/tests/testValidators.py
Expand Up @@ -19,7 +19,6 @@

class ValidatorsTest(unittest.TestCase):
def testExpectedTldIsAValidDomain(self):
print(validators.addr_spec.domain_re)
self.assertTrue(re.compile(validators.addr_spec.domain_re, re.I).match('feedvalidator.org'))

def testNewerTldIsAValidDomain(self):
Expand Down

0 comments on commit db75dac

Please sign in to comment.