Commit fa70c155 authored by Luko van der Maas's avatar Luko van der Maas
Browse files

Merge branch 'extra-ci-tests' into 'master'

Add extra CI codestyle tests

See merge request !1043
parents ed7864e0 9e32235a
......@@ -22,7 +22,14 @@ codestyle:
script:
- tox -e flake8
# Check for obsolete translations in .po files (starting with `#~`).
- cd website
- grep --include="*.po" --files-with-matches --recursive "^#~" && exit 1 || echo "No obsolete translations found."
# Check for untranslated strings in .po files
- empty_strings=$(sed '$a\\' **/locale/nl/LC_MESSAGES/django.po | tac | sed '/^$/N;/\nmsgstr ""$/,/^msgid/!d' | tac)
- empty_strings+=$(sed '$a\\' locale/nl/LC_MESSAGES/django.po | tac | sed '/^$/N;/\nmsgstr ""$/,/^msgid/!d' | tac)
- if [[ $empty_strings ]]; then echo $empty_strings && exit 1; else echo "No untranslated strings found."; fi
# Check for fuzzy translations in .po files
- grep --include="*.po" --files-with-matches --recursive "#, fuzzy" && exit 1 || echo "No fuzzy translations found."
.djangotest: &djangotest
stage: test
......
......@@ -293,12 +293,6 @@ msgstr "alle vakken"
msgid "Name"
msgstr "Naam"
#: templates/education/courses.html
#, fuzzy
#| msgid "categories"
msgid "Categories"
msgstr "categorieën"
#: templates/education/courses.html
msgid "Available documents"
msgstr "Beschikbare documenten"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment