Commit e59363a1 authored by Bastien Le Querrec's avatar Bastien Le Querrec

move to GitLab CI

parent 26b01175
image: registry.silence.dev/silence/android-ci:29
variables:
GIT_SUBMODULE_STRATEGY: "recursive"
ANDROID_AVD_TEST_IMG: "system-images;android-29;default;x86_64"
stages:
- build
- test
buildWitness:
stage: build
script:
- ./scripts/build-witness.sh
assembleDebug:
stage: build
script:
- ./scripts/find-missing-strings.sh
- ./gradlew assembleDebug
artifacts:
paths:
- build/outputs/
debugTests:
stage: test
script:
- sdkmanager --sdk_root=${ANDROID_HOME} ${ANDROID_AVD_TEST_IMG} >/dev/null
- avdmanager create avd --force --name android-10 -k ${ANDROID_AVD_TEST_IMG} --device "Nexus 5X"
- emulator -avd android-10 -wipe-data -no-window -no-audio -gpu swiftshader_indirect &
- /usr/bin/android-wait-for-emulator
- adb shell input keyevent 82 &
- ./gradlew connectedCheck -PdisablePreDex -PtaskThreads=1 -PandroidThread=1
language: android
cache:
directories:
- $HOME/.android
sudo: false
jdk:
- oraclejdk8
env:
- QEMU_AUDIO_DRV=none
android:
components:
- tools
- platform-tools
- build-tools-25.1.1
- build-tools-25.0.3
- build-tools-25.0.2
- build-tools-23.0.2
- build-tools-23.0.1
- build-tools-22.0.1
- build-tools-22.0.0
- build-tools-21.1.2
- build-tools-21.1.1
- build-tools-20.0.0
- build-tools-19.1.0
- android-25
- android-24
- android-21
- android-22
- android-19
- extra-android-m2repository
- sys-img-armeabi-v7a-android-24
before_script:
- echo no | android create avd --force -n test -t android-24 --abi armeabi-v7a
- emulator -avd test -no-skin -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
script:
- ./scripts/find-missing-strings.sh
- ./scripts/build-witness.sh
- ./gradlew connectedCheck -PdisablePreDex -PtaskThreads=1 -PandroidThread=1
- rm -rf ~/.android/avd
after_success:
- ./scripts/travis-upload.sh $KEY
# Silence [![Build Status](https://travis-ci.org/SilenceIM/Silence.svg?branch=master)](https://travis-ci.org/SilenceIM/Silence)
# Silence [![Build Status](https://git.silence.dev/Silence/Silence-Android/badges/master/pipeline.svg)](https://git.silence.dev/Silence/Silence-Android/pipelines)
[Silence](https://silence.im) (formerly SMSSecure) is an SMS/MMS application that allows you to protect your privacy while communicating with friends.
......
Markdown is supported
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