Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Travis CI testing #15

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

malthejorgensen
Copy link

As requested in issue #4 this pull request sets up .travis.yml in a way that enables this package to be tested on Travis CI. The setup is pretty similar to the way the parent MongoEngine repo is set up.

Also testing seutp also adds preliminary Coveralls.io code coverage – again similar to the parent repo.

Got an error in Python 3 because of the way `fields.py` was imported in
`__init__.py`. The fix is to do `from . include fields` if the normal
import fails.
In Python 3.2 the construct `u'This is a unicode string'` is not available, and
causes an error. The fix used is to use the type constructor `unicode()` to wrap
the string instead.
Adds the files `.travis.yml` and `.coveragerc` enabling testing on Travis CI and
code coverage statistics on Coveralls.io, similar to the parent MongoEngine repo
(https://github.com/MongoEngine/mongoengine).

Should fix issue MongoEngine#4.
(Somebody may have to login to travis-ci.org to get things going)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant