-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
73 lines (60 loc) · 2.44 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
language: android
sudo: false
jdk: oraclejdk8
# Added to avoid shallow clone issue
git:
depth: false
addons:
sonarcloud:
organization: "xrahul-github" # the key of the org you chose at step #3
token:
secure: "J5bngE3+ijfapd3V5Va1LcyKFzrKPgZMJgvTBnpF+d13d3zOGQYSRoDHY3sJQj5dqaQUfuek/m9dqwj5/Cmt7hiEp8tsiAqRluGgo3x3uw3bXVUlJG4zFkZ2Y8qMSJ/eT2xyGQCg9KGSW5z4bRpQu0IzxwZCghJncBWr8CCUa4qvCqhCztQgH+O5QMqlyMrnah+RyS6OQvmD6PaX7m+BY6GuIaEduUsQGVpfhqNREN/QeumvTzqS8RdSgFyMnxAqmkiEW71dLXejVDE2tV/MHDlsCyvNg24ArQS6HhzLPikFcttimee1PlY7CUKJrabLqOVuTT2m72Jhdqy+t8oVORus8DQb6peVXBiw4nOi4nr0gfMvcb1IpSOPL1B3YbHzKqy0yUymnuZEQFN2beEUXJ/lpglT8dedzk9L6t+duHfh2anWX5xokDEphXDEPw0hAGFUNan/RDqyowoYdDgvYIdcjPoJqzb7oOl3hxE8InZPBBqrW5QwU+zvMJHMJRMjyZt1/F0RdGWWIDVIC1dSwSY+G7doyJN6ukZMWvRt12S/VoNv5vHGqrbpaVWLl7osOEwsns6vFZMSf0C2IopjzKiN3ZhDjBg8MoKjzmAtBgamkqMgL5wKmKVIrvqvSCUs79E3F8+XtRKBZqYLvUVl4z2Cttx3SRQxi6jTEcq2fFw="
android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
- tools
- platform-tools
- tools
# The BuildTools version used by your project
- build-tools-29.0.2
- build-tools-28.0.3
# The SDK version used to compile your project
- android-29
- extra
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- addon-google_apis-google-29
- addon-google_apis-google-24
- add-on
- addon
# Specify at least one system image,
# if you need to run emulator(s) during your tests
# - sys-img-arm64-v8a-google_apis-25
# - sys-img-armeabi-v7a-google_apis-25
before_install:
- yes | sdkmanager "platforms;android-29"
- chmod +x gradlew
before_script:
# - cp app/google-services\ \(demo\).json app/google-services.json
# - android update sdk --no-ui --filter build-tools-25.0.2,android-25,extra-android-m2repository
# - echo no | android create avd --force -n test -t "android-25" --abi armeabi-v7a --tag google_apis
# - emulator -avd test -no-skin -no-audio -no-window &
# - android-wait-for-emulator
# - adb shell input keyevent 82 &
script:
- ./gradlew assemble
- ./gradlew clean build
- ./gradlew build check
- ./gradlew sonarqube
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.sonar/cache'
- '$HOME/.gradle'
- '.gradle'
- '$HOME/.android/build-cache'
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/