-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
75 lines (66 loc) · 2.09 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
70
71
72
73
74
75
language: android
jdk:
- oraclejdk8
env:
global:
#- ADB_INSTALL_TIMEOUT=20
- ANDROID_API_LEVEL=28
- ANDROID_BUILD_TOOLS_VERSION=28.0.3
#- EMULATOR_API_LEVEL=24
#- ANDROID_EMULATOR_IMAGE=sys-img-arm64-v8a-android-24
#- ANDROID_ABI=arm64-v8a
android:
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
#- '.+'
components:
# Base Components
- tools
- platform-tools
- tools
# BuildTools version
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
# SDK version
- android-$ANDROID_API_LEVEL
#- android-$EMULATOR_API_LEVEL
# Aditional Components
- extra-android-support
- extra-google-m2repository
- extra-android-m2repository
- extra-google-google_play_services
- addon-google_apis-google-$ANDROID_API_LEVEL
# Emulator
#- $ANDROID_EMULATOR_IMAGE
before_install:
# permissao para executar
- chmod +x gradlew
# eliminar o warning
- mkdir -p ~/.android
- touch ~/.android/repositories.cfg
install:
#- sdkmanager --list || true
# updates
#- echo yes | sdkmanager "tools"
#- echo yes | sdkmanager "platform-tools"
#- echo yes | sdkmanager "build-tools;"$ANDROID_BUILD_TOOLS_VERSION
#- echo yes | sdkmanager "platforms;android-"$ANDROID_API_LEVEL # Latest platform required by SDK tools
#- echo yes | sdkmanager "extras;android;m2repository"
#- echo yes | sdkmanager "extras;google;m2repository"
#- echo yes | sdkmanager --update
#- echo yes | sdkmanager --licenses
before_script:
#- mkdir -p "$ANDROID_HOME/licenses"
#- cp ./google-licenses/* "$ANDROID_HOME/licenses"
#- sdkmanager "system-images;android-$EMULATOR_API_LEVEL;google_apis;$ANDROID_ABI"
#- echo no | avdmanager -v create avd -f -n test -k "system-images;android-$EMULATOR_API_LEVEL;google_apis;$ANDROID_ABI"
#- $ANDROID_HOME/emulator/emulator -avd test -no-audio -no-window -gpu swiftshader &
#- android-wait-for-emulator
script:
- ./gradlew build check
#- ./gradlew dependencyCheckAnalyse build
#- adb shell input keyevent 82
#- ./gradlew connectedCheck -PdisablePreDex --stacktrace
notifications:
slack: projectosipt20182019:16ycXr2X0CeVr0PPPlbVGmPB