Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Snippets Groups Projects
Commit e59cd335 authored by Mohammed Althaf Thayyil's avatar Mohammed Althaf Thayyil :blush:
Browse files

camera: Add link check for translations

parent 384c2e13
Branches
No related tags found
1 merge request!84Fix camera crash in french language
Pipeline #449314 passed
...@@ -25,3 +25,4 @@ testdata/ ...@@ -25,3 +25,4 @@ testdata/
local.properties local.properties
uninstall.bat uninstall.bat
lint-results.txt
...@@ -2,6 +2,7 @@ image: "registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:latest" ...@@ -2,6 +2,7 @@ image: "registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:latest"
stages: stages:
- update-from-upstream - update-from-upstream
- lint
- build - build
before_script: before_script:
...@@ -9,6 +10,12 @@ before_script: ...@@ -9,6 +10,12 @@ before_script:
- export GRADLE_USER_HOME=$(pwd)/.gradle - export GRADLE_USER_HOME=$(pwd)/.gradle
- chmod +x ./gradlew - chmod +x ./gradlew
lint:
stage: lint
script:
- chmod +x check_lint.sh
- ./check_lint.sh
cache: cache:
key: ${CI_PROJECT_ID} key: ${CI_PROJECT_ID}
paths: paths:
......
#!/bin/bash
./gradlew lint > lint-results.txt
# Check if "Multiple substitutions specified" or "StringFormatMatches" exist in the lint results
grep -qE "Multiple substitutions specified|StringFormatMatches" lint-results.txt
GREP_STATUS=$?
if [ $GREP_STATUS -eq 0 ]; then
echo "Test Failed: Lint issues found (Multiple substitutions or String format match)"
exit 1
else
echo "Test Passed: No lint issues found"
exit 0
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment