Commit acf018b1 authored by genofire's avatar genofire Committed by Andreas Schildbach
Browse files

.gitlab-ci.yml: Update nightly F-Droid repo at...

.gitlab-ci.yml: Update nightly F-Droid repo at https://git.card10.badge.events.ccc.de/card10/companion-app-android-nightly/raw/master/fdroid/repo
parent f7fd9427
image: openjdk:8-jdk
image: registry.gitlab.com/fdroid/ci-images-client:latest
variables:
ANDROID_SDK_TOOLS: "4333796"
......@@ -26,8 +26,28 @@ stages:
assembleDebug:
stage: build
except:
- master
script:
- ./gradlew assembleDebug
artifacts:
expire_in: 3 days
paths:
- app/build/outputs/
publish:
stage: build
only:
- master
script:
# generate new version
- export versionCode="$CI_JOB_ID"
- export versionName="$(git describe --tag --abbrev=0)-${CI_JOB_ID}_${CI_COMMIT_REF_NAME}"
- echo "set VersionCode '${versionCode}' and VersonName '${versionName}'"
- sed -i "s/^\(\s*versionCode\s*\).*$/\1$versionCode/" app/build.gradle
- sed -i "0,/versionName/s/^\(\s*versionName\).*/\1 \"$versionName\"/" app/build.gradle
- cat -n app/build.gradle
# build free version
- ./gradlew assembleDebug
# publish on nightly fdroid repo
- fdroid nightly -v
......@@ -4,6 +4,6 @@
## Download
Latest Build binary from ci here:
Per F-Droid nightly repository:
[Debug-Binary](https://git.card10.badge.events.ccc.de/card10/companion-app-android/-/jobs/artifacts/master/raw/app/build/outputs/apk/debug/app-debug.apk?inline=false&job=assembleDebug)
[![https://git.card10.badge.events.ccc.de/card10/companion-app-android-nightly/raw/master/fdroid/repo](https://git.card10.badge.events.ccc.de/card10/companion-app-android-nightly/raw/master/icon.png)](https://git.card10.badge.events.ccc.de/card10/companion-app-android-nightly/raw/master/fdroid/repo)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment