Test java version change

This commit is contained in:
Matthieu 2024-08-30 22:02:50 +02:00
parent a103954beb
commit af5f8b7384
1 changed files with 6 additions and 3 deletions

View File

@ -117,15 +117,18 @@ fdroid build:
paths: paths:
- signed/ - signed/
when: always when: always
only: #only:
- tags # - tags
cache: cache:
key: "$CI_JOB_NAME" key: "$CI_JOB_NAME"
paths: paths:
- .android - .android
- .gradle - .gradle
script: script:
# Put the correct versionName and versionCode in the .fdroid.yml - apt-get update
- apt-get install -y openjdk-17-jdk-headless
- update-alternatives --auto java
# Put the correct versionName and versionCode in the .fdroid.yml
- sed -e "s/\${versionName}/$(./gradlew -q printVersionName)/" -e "s/\${versionCode}/$(./gradlew -q printVersionCode)/" .fdroid.yml.template > .fdroid.yml - sed -e "s/\${versionName}/$(./gradlew -q printVersionName)/" -e "s/\${versionCode}/$(./gradlew -q printVersionCode)/" .fdroid.yml.template > .fdroid.yml
- rm .fdroid.yml.template - rm .fdroid.yml.template
# each `fdroid build --on-server` run expects sudo, then uninstalls it # each `fdroid build --on-server` run expects sudo, then uninstalls it