-
-
Notifications
You must be signed in to change notification settings - Fork 110
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 and Coveralls #19
Conversation
Ping @agronholm! |
@pwdyson @agronholm I've updated the PR for the newly-released Python 3.5; everything still passes. What are your thoughts about merging this PR? |
@agronholm I've resolved the merge conflict. Everything still passes on Travis CI, and coverage remains at 98%. |
I don't want to be the maintainer of this project anymore – I only signed up to make it Python 3 compatible. So this will be the last PR I'll handle here. Thoughts:
|
Fair enough, and thanks for the maintenance so far and also for adding Python 3!
The existing one is mostly fine, but the new one uses a template from https://github.com/github/gitignore that covers many standard files that Python projects may generate that we wouldn't want committing to the repo. At least we'd want
Both removed.
Good ideas, I'll update it. |
Adding just |
Note that Travis has to be enabled from the Github admin panel to which I have no access in this project. |
@pwdyson Please could you enable Travis CI and Coveralls for this repo? |
Instead of updating how pyflakes is run, why not switch to flake8 that combines both? |
Three reasons for separate commands:
Would you prefer pyflakes instead? If so, would you prefer those long lines shortening, or some config adding to ignore E501? |
I don't understand why we need separate results from pep8 and pyflakes. As for the line width issue, flake8 just needs a setting for that. See this for an example. |
We don't need separate results, it could just makes it a bit easier to understand which is which and why they're different. Anyway, I'll added that to the config. Sevently-odd lines are up to 250 chars long, shall I shorten them? |
Yes, please do. |
BTW, the 99 character limit I use in my own projects is the maximum permitted by PEP 8, so I figured we could use the same limit here too. |
Looking pretty good already. The various "pip install" commands in .travis.yml could be joined as one. Other than that I have no other requests. |
If you'll just combine the pip installs in .travis.yml to one line, then I'm ready to merge. |
Done. In general, a benefit of having separate lines for I've also left Finally, I've added some extra tests cases that increase coverage to 99%. |
Good enough for me. Thanks! |
I've added a configuration file so Travis CI will build each commit and pull request. It runs against each Python version supported by Travis CI: 2.6, 2.7, 3.2, 3.3, 3.4, PyPy and PyPy3, and all of them pass with no changes needed. This will help maintain the codebase by automatically running the tests against all Python versions for each PR -- it's very handy for picking up those Py2/Py3 inconsistencies..
It also runs the tests with coverage enabled, and sends the coverage reports to Coveralls, so you can see how coverage changes, or if a PR doesn't include tests to cover its new code. Right now, inflect.py has an amazing 98% coverage!
You get reports like this:
I've added badges to the README to show off how good stats this project has. Both Travis CI and Coveralls are free for open source project, you just need to enable them for the repo. Please can you do so at:
Thanks!