This commit is contained in:
Sylvain Berfini 2023-10-03 14:28:38 +02:00
parent de37ae245d
commit 57094d6cce
2 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,27 @@
job-android:
stage: build
tags: [ "docker-android" ]
image: gitlab.linphone.org:4567/bc/public/linphone-android/bc-dev-android:20230414_bullseye_jdk_17_cleaned
before_script:
- if ! [ -z ${SCP_PRIVATE_KEY+x} ]; then eval $(ssh-agent -s); fi
- if ! [ -z ${SCP_PRIVATE_KEY+x} ]; then echo "$SCP_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null; fi
- if ! [ -z ${ANDROID_SETTINGS_GRADLE+x} ]; then echo "$ANDROID_SETTINGS_GRADLE" > settings.gradle; fi
- git config --global --add safe.directory /builds/BC/public/linphone-android
script:
- ./gradlew app:dependencies | grep org.linphone
- ./gradlew assembleDebug
artifacts:
paths:
- ./app/build/outputs/apk/debug/linphone-android-debug-*.apk
when: always
expire_in: 1 week
.scheduled-job-android:
extends: job-android
only:
- schedules

18
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,18 @@
#################################################
# Base configuration
#################################################
#################################################
# Platforms to test
#################################################
include:
- '.gitlab-ci-files/job-android.yml'
stages:
- build
- deploy