Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: python
python:
- "3.2"
- "3.3"
- "3.4"
install:
- pip install -r requirements.txt
- python download_corpora.py
script:
- python tests/unit_tests.py
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ Newspaper3k: Article scraping & curation
:target: http://badge.fury.io/py/newspaper3k.svg
:alt: Latest version

.. image:: https://travis-ci.org/codelucas/newspaper.svg
:target: http://travis-ci.org/codelucas/newspaper/
:alt: Build status


Inspired by `requests`_ for its simplicity and powered by `lxml`_ for its speed:

"Newspaper is an amazing python library for extracting & curating articles."
Expand Down
4 changes: 3 additions & 1 deletion tests/unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,9 @@ def test_spanish_fulltext_extract(self):
suite.addTest(UrlTestCase())
suite.addTest(ArticleTestCase())
suite.addTest(APITestCase())
unittest.TextTestRunner().run(suite)
result = unittest.TextTestRunner().run(suite)
exit_code = 0 if result.wasSuccessful() else 1
sys.exit(exit_code)

# TODO: suite.addTest(SourceTestCase())
# suite.addTest(MThreadingTestCase())