Skip to content

Commit

Permalink
[gitlab][jenkins] check on pudate-po: ignore comments used for new li…
Browse files Browse the repository at this point in the history
…ne position only
  • Loading branch information
jonathanpoelen committed Apr 11, 2024
1 parent cd46621 commit a88f073
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 4 additions & 2 deletions tools/gitlab-analyze.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ show_duration redemption-analyzer.sh

# check .po files
bjam update-po
[[ -z $(git status -s ./tools/i18n/po/*/) ]] || {
if ! grep -E '^([-+]#: |@@|[-+]"|diff |index |[-]{3} |[+]{3})' -qv < <(
git diff --unified=0 ./tools/i18n/po/*/
); then
echo 'Error: .po files are outdated (run bjam update-po)'
exit 1
}
fi

# Python tests and coverage
# @{
Expand Down
7 changes: 0 additions & 7 deletions tools/jenkins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@ if (( $fast == 0 )); then
./tools/c++-analyzer/redemption-analyzer.sh
show_duration redemption-analyzer.sh

# check .po files
bjam update-po
[[ -z $(git status -s ./tools/i18n/po/*/) ]] || {
echo 'Error: .po files are outdated (run bjam update-po)'
exit 1
}


# Python tests
# @{
Expand Down

0 comments on commit a88f073

Please sign in to comment.