-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
52 lines (52 loc) · 2.55 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
env:
global:
- ADB_INSTALL_TIMEOUT=8
- EMU_FLAVOR=default
- ANDROID_HOME=/usr/local/android-sdk
- TOOLS=${ANDROID_HOME}/tools
- PATH=${ANDROID_HOME}:${ANDROID_HOME}/emulator:${TOOLS}:${TOOLS}/bin:${ANDROID_HOME}/platform-tools:${PATH}
- API=32
- ABI=x86
- AUDIO=-no-audio
language: android
dist: trusty
jdk:
- openjdk11
android:
components:
- tools
licenses:
- android-sdk-preview-license-.+
- android-sdk-license-.+
- google-gdk-license-.+
before_install:
- echo 'count=0' > /home/travis/.android/repositories.cfg
- wget "https://dl.google.com/android/repository/commandlinetools-linux-8512546_latest.zip" -O commandlinetools.zip
- unzip commandlinetools.zip -d $ANDROID_HOME/
- gem update --system
- gem install bundler
- bundle install
- yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager "platform-tools" --sdk_root=$ANDROID_HOME >/dev/null
- yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager "tools" --sdk_root=$ANDROID_HOME >/dev/null
- yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager "build-tools;32.0.0" --sdk_root=$ANDROID_HOME >/dev/null
- yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager "platforms;android-$API" --sdk_root=$ANDROID_HOME >/dev/null
- yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager --channel=4 "emulator" --sdk_root=$ANDROID_HOME
- yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager "extras;android;m2repository" --sdk_root=$ANDROID_HOME >/dev/null
before_script:
- chmod +x gradlew
script:
- "./gradlew clean assembleDebug"
before_deploy:
- openssl aes-256-cbc -K $encrypted_07c92ad84bea_key -iv $encrypted_07c92ad84bea_iv -in signing.tar.enc -out signing.tar -d
- tar xvf signing.tar
- "./gradlew clean assembleRelease"
deploy:
provider: releases
api_key:
secure: YjspJC2zkYu+K3QGhUbaWrf2cpKtOaJcYXOAv5fZXcfjfAJDmg5Ziezr8Og797sje3pooarH7mAEI2nNQ/I5jbEdd/L9U3Q9ee7hCsLZWHOH5NJET22Ygp+ZOtT4psShDhA0pcvy5C+iI0N5ic6fM7sSUvidlOEC1Rq7rRa0wpJCSol4lK2vxqoF36yFkc5pv32XQgLK4g/pamLvcePo5r4bLgRfjZXGxRyKhc7vBqb8VQP0bx/TzSP3ecXfZk7QVmEDxEEGPMFKoDOcGYPlCsgbSNHH8QU6KtkEAMQ77jjHMzgmffjPNvZOk289vgwbSGgzJDZYDFvI8/0hZln1aB0lgf7C/zon5we1/yop5zdj3fQarx4bn0LTFByeRs+2kCh/LuW76956IFHWHOTcHO6wUBtb3B/XOLUsxXWOr+Dd6nBzvGL4YhgCYuU9fvyM3ugvfIbQLvK2bIavl8ljXLRmTcGf+x/fkjhrkPUssXoF/4QOgaqYfcY1kypFsYj+VcB/5l8ay2I3nrM5GvsCg2XmMLb/YdR0oYTF/Gw3Uu8HasllCtrJKYypIsDKKaN0g2W2kCQlh4/XEwhhu12czuS4OJkyTFmDcMMz8t0kRMOnG0ZLv7yKbWzjo7sD6dfAaxgOpYSCqqfuFGKju2Oa3LWcqaNvE0gftOSLdVOrwAg=
file_glob: true
file: app/build/outputs/apk/release/*.apk
skip_cleanup: true
on:
repo: TheCacophonyProject/bird-monitor
tags: true