mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-11 23:23:27 +02:00
gitlab-ci: add shellcheck to gradlew-fdroid checks
This commit is contained in:
parent
45d1363a0e
commit
9d8c098f74
@ -180,7 +180,7 @@ arch_pip_install:
|
|||||||
# The gradlew-fdroid tests are isolated from the rest of the test
|
# The gradlew-fdroid tests are isolated from the rest of the test
|
||||||
# suite, so they run as their own job.
|
# suite, so they run as their own job.
|
||||||
gradlew-fdroid:
|
gradlew-fdroid:
|
||||||
image: debian:bullseye
|
image: debian:bullseye-slim
|
||||||
<<: *apt-template
|
<<: *apt-template
|
||||||
only:
|
only:
|
||||||
changes:
|
changes:
|
||||||
@ -188,7 +188,8 @@ gradlew-fdroid:
|
|||||||
- gradlew-fdroid
|
- gradlew-fdroid
|
||||||
- tests/test-gradlew-fdroid
|
- tests/test-gradlew-fdroid
|
||||||
script:
|
script:
|
||||||
- apt-get install ca-certificates curl default-jdk-headless unzip
|
- apt-get install ca-certificates curl default-jdk-headless shellcheck unzip
|
||||||
|
- shellcheck --severity=error --color gradlew-fdroid tests/test-gradlew-fdroid
|
||||||
- ./tests/test-gradlew-fdroid
|
- ./tests/test-gradlew-fdroid
|
||||||
|
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@ run_gradle() {
|
|||||||
if [ ! -d "${gradle_version_dir}/${v_found}" ]; then
|
if [ ! -d "${gradle_version_dir}/${v_found}" ]; then
|
||||||
download_gradle ${v_found}
|
download_gradle ${v_found}
|
||||||
fi
|
fi
|
||||||
|
# shellcheck disable=SC2145
|
||||||
echo "Running ${gradle_version_dir}/${v_found}/bin/gradle ${args[@]}"
|
echo "Running ${gradle_version_dir}/${v_found}/bin/gradle ${args[@]}"
|
||||||
"${gradle_version_dir}/${v_found}/bin/gradle" "${args[@]}"
|
"${gradle_version_dir}/${v_found}/bin/gradle" "${args[@]}"
|
||||||
exit $?
|
exit $?
|
||||||
@ -264,7 +265,7 @@ fi
|
|||||||
if [[ -n $plugin_pver ]]; then
|
if [[ -n $plugin_pver ]]; then
|
||||||
i=0
|
i=0
|
||||||
match=false
|
match=false
|
||||||
for k in ${d_gradle_plugin_ver_k[@]}; do
|
for k in "${d_gradle_plugin_ver_k[@]}"; do
|
||||||
if [[ $plugin_pver == ${k}* ]]; then
|
if [[ $plugin_pver == ${k}* ]]; then
|
||||||
plugin_ver=${d_plugin_min_gradle_v[$i]}
|
plugin_ver=${d_plugin_min_gradle_v[$i]}
|
||||||
match=true
|
match=true
|
||||||
|
Loading…
Reference in New Issue
Block a user