-
Notifications
You must be signed in to change notification settings - Fork 47
[travis] added strings check #751
base: master
Are you sure you want to change the base?
Conversation
|
||
RETURN=0 | ||
|
||
if test "$ADDED_MESSAGES" != 0; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
usually this is written with []
instead of test
and also to avoid any ambiguity, I would compare against "0"
not 0
, so something like:
if [ "$ADDED_MESSAGES" != "0" ] ; then
echo "Failure: strings need to be regenerated" | ||
fi | ||
|
||
exit "$RETURN"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: exit $RETURN
is enough :)
9277bd5
to
e43e705
Compare
c4a136e
to
b0b4c03
Compare
@@ -0,0 +1,6 @@ | |||
#!/usr/bin/env sh | |||
../../../app/console translation:extract en -v \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe change to run from project root as they seems to depend on that anyway? (and check if in root while at it, this is placed in public folder, aka no .<folder>
like .travis
, so should probably do some sanity checks before running)
Kudos, SonarCloud Quality Gate passed! |
Runs the
bin/updatestrings.sh
(also part of this PR) script in dry-run mode, frombin/travis/checkstrings.sh
, and fails ifthe pull-request add nor remove strings.