This repository has been archived by the owner on May 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bertrand Dunogier
committed
Dec 2, 2016
1 parent
9428cdf
commit e43e705
Showing
4 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env sh | ||
|
||
OUTPUT=$(./bin/updatestrings.sh --dry-run) | ||
|
||
echo "> Output from updatestrings.sh" | ||
echo $OUTPUT | ||
|
||
echo "> Strings check result" | ||
|
||
ADDED_MESSAGES=$(echo "$OUTPUT" | awk '/Added Messages/ { print $3 }') | ||
DELETED_MESSAGES=$(echo "$OUTPUT" | awk '/Deleted Messages/ { print $3 }') | ||
|
||
RETURN=0 | ||
|
||
if test "$ADDED_MESSAGES" != "0"; then | ||
echo "$ADDED_MESSAGES strings are added"; | ||
RETURN=1 | ||
fi | ||
|
||
if test "$DELETED_MESSAGES" != "0"; then | ||
echo "$DELETED_MESSAGES strings are deleted"; | ||
RETURN=1 | ||
fi | ||
|
||
if test "$RETURN" != 0; then | ||
echo "Failure: strings need to be regenerated" | ||
fi | ||
|
||
exit $RETURN; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env sh | ||
|
||
set -x | ||
|
||
cd $HOME/build/ezplatform/vendor/ezsystems/platform-ui-bundle | ||
$(docker-compose exec --user www-data app sh -c "./bin/travis/checkstrings.sh") | ||
|
||
exit $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env sh | ||
../../../app/console translation:extract en -v \ | ||
--dir=. \ | ||
--exclude-dir=vendor --exclude-dir=Tests --exclude-dir=Features --exclude-dir=node_modules --exclude-dir=Resources/public/vendors \ | ||
--output-dir=./Resources/translations \ | ||
"$@" |