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 pipenv tasks to #38 #55

Merged
merged 2 commits into from
Nov 5, 2018
Merged

Conversation

jerbob
Copy link
Contributor

@jerbob jerbob commented Nov 2, 2018

This PR implements pipenv tasks for linting and testing of code, building on the Pipfile from #38.

Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@anonguy great, now you see the travis build failing and you can try editing .travis.yml to make it pass, once done please squash your commits (except the one of @okraits) into one and use a commit message that follows our commit message guidelines.

@coveralls
Copy link

coveralls commented Nov 2, 2018

Coverage Status

Coverage remained the same at 99.582% when pulling e3014d1 on AnonGuy:master-pipenv into fba9b8f on openwisp:master.

Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just restarted the build on the master branch and it passed regularly: https://travis-ci.org/openwisp/openwisp-controller/jobs/450308174

I'm not 100% sure of what is happening becaus I'm not familiar with pipenv, but by looking at the errors we are getting in the failing build I can think it's because one of the dependencies, probably django-netjsonconfig is not being installed as we need right now in the dev branch, we need to get the latest master of django-netjsonconfig.

You can verify this on your local machine by doing the following:

  • install the latest version of django-netjsonconfig available on pypi in the pipenv
  • now run tests on openwisp-controller (ensure the latest stable version of django-netjsonconfig is being used)

If you see similar failures, that's the reason

.travis.yml Outdated Show resolved Hide resolved
Pipfile Show resolved Hide resolved
Pipfile Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
Implemented pipenv scripts to the relevant section of the Pipfile, to
replace existing files. "runflake8" is replaced by "pipenv run lint",
and "runisort" is replaced by "pipenv run isort". Since it's difficult
to implement runtests.py as a single one-liner, I've added "pipenv run
test", which is an alias to "pipenv run python runtests.py".
@jerbob
Copy link
Contributor Author

jerbob commented Nov 5, 2018

I've addressed all issues, fixed the travis configuration to pass build tests, and squashed all commits into a single commit that passes commit message guidelines.

.travis.yml Show resolved Hide resolved
@okraits
Copy link
Member

okraits commented Nov 5, 2018

Great job! 👍 Thank you very much for your huge effort!

Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @anonguy! Thanks a lot!

@nemesifier nemesifier merged commit 4ff53c1 into openwisp:master Nov 5, 2018
@jerbob jerbob deleted the master-pipenv branch November 6, 2018 13:19
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.

None yet

4 participants