Convert doctests to nosetests and configure Travis to run them.