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

Implement "standard" CI tools #10

Merged
merged 4 commits into from
Dec 6, 2016
Merged

Conversation

Mierdin
Copy link
Contributor

@Mierdin Mierdin commented Dec 5, 2016

This implements some popular structure and tools to make it easier to
work on this project at scale. The patch introduces several testing and
linting tools that will make it easier to make quality contributions.

In short, Travis CI will run three commands to vet incoming Pull Requests:

  • tox -epep8: This runs PEP8 and other style checks on your code
  • tox -epy27: This runs unit tests
  • tox -ecover: This runs coverage testing

These tools are all present in the repository. So, as long as you have pip and virtualenv installed and up to date, you should be able to run these same checks on your own machine, so you know before pushing any code if you're consistent with the standards.

This follows the openstack model. Please read this blog post for some more information on the value of a proper development environment.

This PR still fails the TravisCI build because of PEP8 issues. I decided not to address these here so that someone else can have the opportunity to fix these in a PR of their own, and in doing so, fix the build 😄. I opened #11 to track this - if you want to work on that, let us know there!

This implements some popular structure and tools to make it easier to
work on this project at scale. The patch introduces several testing and
linting tools that will make it easier to know if you're contributing
something of quality.

This follows the openstack model. Please read:
https://keepingitclassless.net/2015/10/benefits-development-environment/

Signed-off-by: Matt Oswalt <[email protected]>
@Mierdin Mierdin mentioned this pull request Dec 5, 2016
@Mierdin Mierdin merged commit 3ddd1e2 into commitmas:master Dec 6, 2016
@Mierdin Mierdin deleted the ci-tools branch December 6, 2016 21:29
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