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

Commit f3c5e792 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊 Committed by Nishith Khanna
Browse files

camera: Add link check for translations

parent 8c99f810
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -25,3 +25,4 @@ testdata/

local.properties
uninstall.bat
lint-results.txt
+7 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@ image: "registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:latest"

stages:
  - update-from-upstream
  - lint
  - build

before_script:
@@ -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:

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