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

Add credo to CI tests #316

Merged
merged 8 commits into from
Dec 7, 2018
Merged

Add credo to CI tests #316

merged 8 commits into from
Dec 7, 2018

Conversation

joshuawscott
Copy link
Member

Fixes #100

@bjhaid
Copy link
Member

bjhaid commented Oct 18, 2018

does ebert not provide the same functionality as credo?

mix "$TEST_COMMAND" $INCLUDED_TESTS
fi
# Retry if it doesn't work the first time
mix "$TEST_COMMAND" $INCLUDED_TESTS || mix "$TEST_COMMAND" $INCLUDED_TESTS

Choose a reason for hiding this comment

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

Double quote to prevent globbing and word splitting.

mix "$TEST_COMMAND" $INCLUDED_TESTS
fi
# Retry if it doesn't work the first time
mix "$TEST_COMMAND" $INCLUDED_TESTS || mix "$TEST_COMMAND" $INCLUDED_TESTS

Choose a reason for hiding this comment

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

Double quote to prevent globbing and word splitting.

@joshuawscott
Copy link
Member Author

It does, but this gives the extra layer of ensuring that credo passes, or it will fail the test suite. It's currently passing, which was our roadblock in the past to enabling it, if I recall correctly.

Copy link
Collaborator

@dantswain dantswain left a comment

Choose a reason for hiding this comment

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

Josh just wants a t-shirt.

🐐 as-is but a couple comments

Do we want to add a .credo.exs?

@@ -6,8 +6,15 @@
#
# This script could be used for local testing as long as COVERALLS is not set.

set -e
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of this, do we want to run both and then have it report which things failed?

Copy link
Member

Choose a reason for hiding this comment

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

set -ex probably will be more obvious on which failed

Copy link
Member Author

Choose a reason for hiding this comment

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

done

mix "$TEST_COMMAND" $INCLUDED_TESTS
fi
# Retry if it doesn't work the first time
mix "$TEST_COMMAND" $INCLUDED_TESTS || mix "$TEST_COMMAND" $INCLUDED_TESTS

Choose a reason for hiding this comment

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

Double quote to prevent globbing and word splitting.

mix "$TEST_COMMAND" $INCLUDED_TESTS
fi
# Retry if it doesn't work the first time
mix "$TEST_COMMAND" $INCLUDED_TESTS || mix "$TEST_COMMAND" $INCLUDED_TESTS

Choose a reason for hiding this comment

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

Double quote to prevent globbing and word splitting.

Copy link
Member Author

Choose a reason for hiding this comment

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

This is incorrect. Quoting this changes the meaning of the arguments.

@sourcelevel-bot
Copy link

Ebert has finished reviewing this Pull Request and has found:

  • 2 possible new issues (including those that may have been commented here).
  • 2 fixed issues! 🎉

You can see more details about this review at https://ebertapp.io/github/kafkaex/kafka_ex/pulls/316.

@joshuawscott joshuawscott merged commit 1496344 into master Dec 7, 2018
@joshuawscott joshuawscott deleted the add_credo branch December 7, 2018 14:25
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.

3 participants