Skip to content
This repository was archived by the owner on Oct 29, 2021. It is now read-only.

Conversation

@mestery
Copy link
Collaborator

@mestery mestery commented Jul 3, 2018

Closes #139
Closes #140

This PR does a few things:

  • Adds support for shellcheck [1], a static analysis tool for shell scripts
  • Runs shellcheck as a part of our travis-ci jobs
  • Reformulates the existing integration tests so they can be easily run be either developers or the travis-ci system

To run the CI scripts by hand against an existing Kubernetes install:

./scripts/dev-integration-tests.sh

This requires the Docker images for both the server and client to built, but the tests will verify this and point you towards this if they do not exist.

[1] https://github.com/koalaman/shellcheck

@mestery mestery added bug 🐛 Something isn't working enhancement New feature or request labels Jul 3, 2018
@mestery mestery self-assigned this Jul 3, 2018
@mestery mestery requested a review from fkautz July 3, 2018 15:47
@fkautz
Copy link
Member

fkautz commented Jul 6, 2018

Can you double check patch? Looks like many patches were added that were not meant to be a part of this merge.

Copy link
Member

@fkautz fkautz left a comment

Choose a reason for hiding this comment

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

GH won't let me leave a review without a comment. Sot this comment is a repeat. Check the commits on this, looks like more may of ended up in this patch than was expected.

mestery added 5 commits July 7, 2018 21:17
Break the integration tests up so they can more easily be run from a
developer's own Kubernetes install.

Signed-off-by: Kyle Mestery <mestery@mestery.com>
Signed-off-by: Kyle Mestery <mestery@mestery.com>
Signed-off-by: Kyle Mestery <mestery@mestery.com>
Signed-off-by: Kyle Mestery <mestery@mestery.com>
This commit adds shellcheck into the CI system. Shellcheck will verify our
shell scripts are compliant with it's static analysis checking, saving us
immense debugging efforts. Yay!

Signed-off-by: Kyle Mestery <mestery@mestery.com>
@mestery
Copy link
Collaborator Author

mestery commented Jul 8, 2018

@fkautz Done, cleaned this up!

@fkautz fkautz merged commit bf7deea into networkservicemesh:master Jul 8, 2018
@mestery mestery deleted the script-cleanup branch August 6, 2018 16:26
doonhammer pushed a commit to doonhammer/networkservicemesh that referenced this pull request Aug 8, 2018
…sh#141)

* Cleanup the integration tests

Break the integration tests up so they can more easily be run from a
developer's own Kubernetes install.


* Run the travis integration tests in travis


* Add a script for developers to run integration tests


* Rename integration-tests-helpers.sh to integration-test-helpers.sh


* Add shellcheck support

This commit adds shellcheck into the CI system. Shellcheck will verify our
shell scripts are compliant with it's static analysis checking, saving us
immense debugging efforts. Yay!
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug 🐛 Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants