2018-12-17 21:48:57 +01:00
|
|
|
git:
|
|
|
|
depth: false
|
2017-09-11 15:16:47 +02:00
|
|
|
language: android
|
|
|
|
jdk: oraclejdk8
|
|
|
|
env:
|
|
|
|
global:
|
2023-10-27 05:10:12 +02:00
|
|
|
- ANDROID_TARGET=android-31
|
2017-09-11 15:16:47 +02:00
|
|
|
- ANDROID_ABI=armeabi-v7a,x86
|
|
|
|
- secure: d8PwteM+xp1IRU3QkvmHtxh+1Ta9n/kl/SJ3EZa3iColVVXY1etzjY3cKrEGKKMJuI4be30kPzvNw9/BVTawDpnU9/NtWqykJ8QHXNWnZIvUQ/kxHBS1DbcstmcYU9gvR83EFb8BT+Y9frpNfMcZDlSvBpEGqDQEPmxiDzSmjdUmJJQWStncxL9pE+lCdM6lHBgtfYoMMiqCQF/DxkQisjyUVF4mbTGuT9JOOWjVsTGPA7ehzsWDHoJ3p2ai8UKHAYucUWZcTt4rkq9l35ExvgKd3L8luk8U3X3Fk9yzVhPJC56T0XNbNrsQ2W7/7oGRv6EQFV3aKDZimJ7CVjBcEjZmPxeUVvCsMW8XB41ZvYcy6xsjF96oyjn1gb0r/2mZbTaWP0izSTwMYZ5vFNKUamDtRZgrneD0lfvXgfTzirrCU7FqO2RH7ZK5PQpSgSoZxKsKyeyFPEa2ihivc95rz1MS6mamle9wrIlSAgEGcaZMIYvKiOnCLk7CZCKuwm2dhYPgzCHW3PUopay59BBwMsSqWpxsiHEr5jYGpb0pHGbzPTJNUpg1LNQX5eMQOMlEt7rfpoC7JG24hR9vxl4Yf9LhxYlSwUiPy7TYHdbA0kUS68skfzxU6+ekWZF2QFM+L4vWCYmEHDy7n+I0df+PavycgNW989ROlAKhQjtMyqM=
|
|
|
|
android:
|
|
|
|
components:
|
|
|
|
- tools
|
|
|
|
- platform-tools
|
2023-10-27 05:10:12 +02:00
|
|
|
- build-tools-28.0.3
|
|
|
|
- android-31
|
2018-07-16 05:36:43 +02:00
|
|
|
licenses:
|
|
|
|
- android-sdk-preview-license-.+
|
|
|
|
- android-sdk-license-.+
|
|
|
|
- google-gdk-license-.+
|
2017-09-11 15:16:47 +02:00
|
|
|
before_script:
|
|
|
|
- export TERM=dumb
|
|
|
|
- curl -L http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin -O
|
|
|
|
- chmod u+x android-ndk-r10e-linux-x86_64.bin
|
2017-10-11 16:39:09 +02:00
|
|
|
- "./android-ndk-r10e-linux-x86_64.bin > /dev/null"
|
2017-09-11 15:16:47 +02:00
|
|
|
- rm android-ndk-r10e-linux-x86_64.bin
|
|
|
|
- export LOCAL_ANDROID_NDK_HOME="$ANDROID_NDK_HOME"
|
|
|
|
- export LOCAL_ANDROID_NDK_HOST_PLATFORM="linux-x86_64"
|
|
|
|
- export PATH=$PATH:${ANDROID_NDK_HOME}
|
|
|
|
- cd xwords4/android/
|
|
|
|
before_install:
|
2023-10-27 05:10:12 +02:00
|
|
|
- yes | sdkmanager "platforms;android-31"
|
2017-10-11 16:39:09 +02:00
|
|
|
- openssl aes-256-cbc -K $encrypted_8436f2891714_key -iv $encrypted_8436f2891714_iv
|
|
|
|
-in id_rsa_uploader.enc -out /tmp/id_rsa_uploader -d
|
2017-09-11 15:16:47 +02:00
|
|
|
- chmod 600 \/tmp\/id_rsa_uploader
|
2023-10-27 18:11:01 +02:00
|
|
|
- sudo apt-get -qq update --allow-unauthenticated
|
2020-06-15 22:32:44 +02:00
|
|
|
- sudo apt-get install -y python3-lxml imagemagick
|
2017-09-11 15:16:47 +02:00
|
|
|
script:
|
2021-01-30 01:28:52 +01:00
|
|
|
- GITREV="$(git describe --tags --dirty)"
|
2021-01-17 03:00:04 +01:00
|
|
|
- sed -i -e '/\/\/ rm-for-fdroid$/d' {.,app}/build.gradle
|
2021-01-30 01:28:52 +01:00
|
|
|
- ./gradlew asXw4dDeb -PGITREV="$GITREV"
|
2019-03-09 05:51:19 +01:00
|
|
|
- scp -o "StrictHostKeyChecking no" -i /tmp/id_rsa_uploader -d app/build/outputs/apk/*/debug/*.apk
|
2018-12-17 02:43:12 +01:00
|
|
|
uploader@eehouse.org:XW4D_UPLOAD
|
2017-09-11 15:16:47 +02:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
recipients:
|
|
|
|
- xwords@eehouse.org
|
|
|
|
on_failure: always
|
2022-05-13 02:48:18 +02:00
|
|
|
on_success: always
|