Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

[travis] added strings check #751

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bdunogier
Copy link
Member

@bdunogier bdunogier commented Dec 1, 2016

EZP-26731

Runs the bin/updatestrings.sh (also part of this PR) script in dry-run mode, from bin/travis/checkstrings.sh, and fails ifthe pull-request add nor remove strings.


RETURN=0

if test "$ADDED_MESSAGES" != 0; then
Copy link
Contributor

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";
Copy link
Contributor

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 :)

@bdunogier bdunogier closed this Dec 1, 2016
@bdunogier bdunogier reopened this Dec 1, 2016
@bdunogier bdunogier force-pushed the ezp26731-travis_check_strings branch from 9277bd5 to e43e705 Compare December 2, 2016 08:12
@bdunogier bdunogier force-pushed the ezp26731-travis_check_strings branch from c4a136e to b0b4c03 Compare December 5, 2016 11:02
@@ -0,0 +1,6 @@
#!/usr/bin/env sh
../../../app/console translation:extract en -v \
Copy link
Contributor

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)

@sonarcloud
Copy link

sonarcloud bot commented Jul 1, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants