mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-02-07 14:58:24 +00:00
33 lines
904 B
YAML
33 lines
904 B
YAML
job-android:
|
|
|
|
stage: build
|
|
tags: [ "docker-android" ]
|
|
|
|
image: gitlab.linphone.org:4567/bc/public/linphone-sdk/bc-dev-android:r16b
|
|
variables:
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
CMAKE_GENERATOR: Ninja
|
|
|
|
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
|
|
|
|
|
|
script:
|
|
- scp -oStrictHostKeyChecking=no $DEPLOY_SERVER:$ANDROID_DEBUG_KEYSTORE_PATH ~/.android
|
|
- ./prepare.py
|
|
- make
|
|
- cp bin/outputs/apk/debug/linphone-android-obiane-debug.apk android-obiane.apk
|
|
- make unsigned
|
|
- cp bin/outputs/apk/packaged/linphone-android-obiane-packaged-unsigned.apk android-obiane-unsigned.apk
|
|
|
|
artifacts:
|
|
paths:
|
|
- android-obiane-unsigned.apk
|
|
- android-obiane.apk
|
|
when: always
|
|
expire_in: 1 week
|
|
|
|
|
|
stages:
|
|
- build
|