forked from hanggrian/socialview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (42 loc) · 1.41 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
sudo: true
language: android
jdk: oraclejdk8
env:
global:
- GRADLE_OPTS='-Dorg.gradle.daemon=false -Dorg.gradle.parallel=false -Dkotlin.incremental=false -DdisablePreDex'
- ANDROID_TARGET=android-28
- ANDROID_BUILD_TOOLS_VERSION=28.0.1
- ANDROID_ABI=armeabi-v7a
- ANDROID_EMULATOR_TARGET=android-22
android:
components:
- tools
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
- $ANDROID_TARGET
- $ANDROID_EMULATOR_TARGET
- extra-google-google_play_services
- extra-android-support
- extra
- sys-img-$ANDROID_ABI-$ANDROID_EMULATOR_TARGET
licenses:
- 'android-sdk-license-.+'
before_install:
- echo yes | sdkmanager "platforms;$ANDROID_TARGET" "build-tools;$ANDROID_BUILD_TOOLS_VERSION"
before_script:
- sudo service postgresql stop || true
- sudo service mysql stop || true
- sudo service memcached stop || true
- sudo service bootlogd stop || true
- sudo service elasticsearch stop || true
- sudo service mongodb stop || true
- sudo service cassandra stop || true
- sudo service rsync stop || true
- sudo service x11-common stop || true
script:
- echo no | android create avd --force -n test -t $ANDROID_EMULATOR_TARGET --abi $ANDROID_ABI
- emulator -avd test -no-window &
- ./gradlew check
- android-wait-for-emulator
- adb shell input keyevent 82 &
- ./gradlew :socialview:connectedAndroidTest
- ./gradlew :socialview-commons:connectedAndroidTest