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

Added Luacheck and travis.yml with install-config #80

Merged
merged 1 commit into from
Nov 11, 2018

Conversation

vishalx360
Copy link
Contributor

@vishalx360 vishalx360 commented Nov 11, 2018

Files added/changed - Summary

  • added travis.yml with dependencies installation configuration.

  • added luacheck test command with parameters (-d -a -r) to filter unwanted warnings in runtests script

  • after running runtests script
    -- fixed accessing undefined variable uci warning by making uci global variable and assigning to require('uci')in openwisp-config/tests/test_utils.lua file

fixes #77

this is a submission for GCI task- Add travis-ci configuration for luacheck - OpenWISP

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.

@vishalx360 great progress and great work 👍

But there are two outstanding issues, shouldn't be hard to fix, see my comments below.

.travis.yml Outdated Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
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.

.travis.yml Outdated Show resolved Hide resolved
.travis.yml Show resolved Hide resolved
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.

openwisp#77

- added travis.yml with dependencies installation script.
- added luacheck test command in runtests script.
- fixed accessing undefined variable `uci` warning

Fixes openwisp#77
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 @vishalx360! This is very useful. Keep up the good work and I hope you learnt how we work so you can keep in mind all these suggestions for your next patches and they'll be merged much faster.

@okraits habemus travis on openwisp-config! 😁

@nemesifier nemesifier merged commit 7a202b8 into openwisp:master Nov 11, 2018
@okraits
Copy link
Member

okraits commented Nov 12, 2018

@vishalx360 @nemesisdesign Great work guys! 😀

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.

[openwisp-config] Add luacheck to runtests script and fix all warnings
3 participants