-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
69 lines (62 loc) · 2.17 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
language: android
jdk: oraclejdk8
cache:
directories:
- $HOME/.gradle/caches/jars-1
- $HOME/.gradle/caches/jars-2
- $HOME/.gradle/caches/jars-3
- $HOME/.gradle/caches/modules-2/files-2.1/
- $HOME/.gradle/native
- $HOME/.gradle/wrapper
- $HOME/.android/build-cache
env:
global:
- ANDROID_EMULATOR_ABI=armeabi-v7a
- ANDROID_MINIMUM_API_LEVEL=21
- ANDROID_TARGET_API_LEVEL=29
- ANDROID_BUILD_TOOLS_VERSION=29.0.3
android:
components:
- tools
- platform-tools
# ensure that the latest tools are installed
- tools
# The BuildTools version used by your project
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
# The SDK version used to compile your project
- android-$ANDROID_MINIMUM_API_LEVEL
- android-$ANDROID_TARGET_API_LEVEL
# Additional components
- extra-android-m2repository
- extra-google-google_play_services
- extra-google-m2repository
- sys-img-$ANDROID_EMULATOR_ABI-android-$ANDROID_MINIMUM_API_LEVEL
# bug https://github.com/travis-ci/travis-ci/issues/8874
before_install:
- if [ ${encrypted_463b84ff039c_key+x} ]; then
openssl aes-256-cbc -K $encrypted_463b84ff039c_key -iv $encrypted_463b84ff039c_iv -in plugins/radar-android-empatica/libs/E4link-1.0.0.aar.enc -out plugins/radar-android-empatica/libs/E4link-1.0.0.aar -d;
rm plugins/radar-android-empatica/gradle.skip;
ls -l plugins/radar-android-empatica/libs/E4link-1.0.0.aar;
fi
- yes | sdkmanager "platforms;android-${ANDROID_TARGET_API_LEVEL}"
- yes | sdkmanager "ndk-bundle"
# Emulator Management: Create, Start and Wait
before_script:
- export ANDROID_NDK_HOME=$ANDROID_HOME/ndk-bundle
- echo no | android create avd --force -n test -t android-$ANDROID_MINIMUM_API_LEVEL --abi $ANDROID_EMULATOR_ABI -c 100M
- emulator -avd test -no-audio -no-window &
script:
- ./gradlew --daemon assembleDebug lintDebug testDebug
- android-wait-for-emulator
- adb shell input keyevent 82 &
- ./gradlew --daemon connectedCheck
deploy:
- provider: releases
api_key: ${GH_TOKEN}
file_glob: true
file:
- "build/outputs/aar/*.aar"
- "build/libs/*.jar"
skip_cleanup: true
on:
tags: true