Loading .gitignore +1 −0 Original line number Diff line number Diff line Loading @@ -25,3 +25,4 @@ testdata/ local.properties uninstall.bat lint-results.txt .gitlab-ci.yml +7 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ image: "registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:latest" stages: - update-from-upstream - lint - build before_script: Loading @@ -9,6 +10,12 @@ before_script: - export GRADLE_USER_HOME=$(pwd)/.gradle - chmod +x ./gradlew lint: stage: lint script: - chmod +x check_lint.sh - ./check_lint.sh cache: key: ${CI_PROJECT_ID} paths: Loading check_lint.sh 0 → 100755 +16 −0 Original line number Diff line number Diff line #!/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 Loading
.gitignore +1 −0 Original line number Diff line number Diff line Loading @@ -25,3 +25,4 @@ testdata/ local.properties uninstall.bat lint-results.txt
.gitlab-ci.yml +7 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ image: "registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:latest" stages: - update-from-upstream - lint - build before_script: Loading @@ -9,6 +10,12 @@ before_script: - export GRADLE_USER_HOME=$(pwd)/.gradle - chmod +x ./gradlew lint: stage: lint script: - chmod +x check_lint.sh - ./check_lint.sh cache: key: ${CI_PROJECT_ID} paths: Loading
check_lint.sh 0 → 100755 +16 −0 Original line number Diff line number Diff line #!/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