-
-
Notifications
You must be signed in to change notification settings - Fork 365
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 config file #32
Conversation
Travis CI supports MySQL and Postgres database access. I haven't tried using a real database for Travis tests yet, but it seems like running the tests against sqlite3, mysql, and postgres automatically might be a good idea. I'm not sure yet what the most appropriate way to do that would be. Using dj-database-url in runtests.py is one option. |
Thanks for working on this! So And no, model-utils doesn't yet support Python 3 - I'll open a ticket for that, it needs to happen soon. |
I forgot that there was a Some differences:
|
Thanks, merged! |
It looks like you need to link Travis to your Github account and enable it for this repository for it to start working. Currently works: https://travis-ci.org/treyhunner/django-model-utils/ Currently doesn't work: https://travis-ci.org/carljm/django-model-utils/ I think that's why pull request #33 isn't showing a build status. |
Ok, I think I set this up. There seemed to be a build in progress for #33, but I was impatient so I just ran the tests locally and pushed it, thanks for that :-) Gonna put out a 1.3 release pretty soon here, unless you know of a reason to wait. |
Great. I also noticed the build progress for #33.. the Travis builds seem to be taking a really long time today for some reason. |
I've already confirmed that this file works on Travis CI by running it on my local repository: https://travis-ci.org/treyhunner/django-model-utils/builds/5559574
I also tried adding Python 3.3 tests with Django 1.5 in a separate branch but it is currently failing with Python 3 (as seen here). I also wasn't sure what the lowest supported Django version should be, but the tests seem to pass against Django 1.3.7 at least.
It's relatively easy to remove change this file to check against Django's git master branch as well.
This is the first
.travis.yml
file I've made. It was easier than I expected.