Skip to content

Commit 4243cbc

Browse files
committed
Update .travis.yml
1 parent f886b41 commit 4243cbc

File tree

1 file changed

+7
-19
lines changed

1 file changed

+7
-19
lines changed

.travis.yml

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ notifications:
77
88

99
env:
10-
matrix:
11-
- ADB_INSTALL_TIMEOUT=15 ANDROID_BUILD_TOOLS_VERSION=25.0.2 ANDROID_API_LEVEL=25 ANDROID_ABI=armeabi-v7a ANDROID_TAG=google_apis
1210
global:
13-
- GRADLE_OPTS="-Xmx512m"
11+
- ADB_INSTALL_TIMEOUT=10 #Time out to 10 mins
1412

1513
before_cache:
1614
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
@@ -26,32 +24,22 @@ android:
2624
components:
2725
- platform-tools
2826
- tools
29-
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
30-
- android-$ANDROID_API_LEVEL
31-
- addon-$ANDROID_TAG-google-$ANDROID_API_LEVEL
27+
- build-tools-25.0.1
28+
- android-25
29+
30+
# Additional components
3231
- extra-google-google_play_services
3332
- extra-google-m2repository
3433
- extra-android-m2repository
35-
- sys-img-armeabi-v7a-$ANDROID_TARGET
36-
37-
#licenses:
38-
# - 'android-sdk-preview-license-52d11cd2'
39-
# - 'android-sdk-license-.+'
40-
# - 'google-gdk-license-.+'
4134

4235
before_script:
4336
- chmod +x gradlew #Grand permissions
44-
- android list targets
45-
- echo no | android create avd --force --name test --target $ANDROID_TARGET --abi $ANDROID_ABI #Create AVD for given api
46-
- emulator -avd test -no-skin -no-audio -no-window & #Start emulator
4737

4838
script:
4939
- echo "Travis branch is $TRAVIS_BRANCH"
5040
- echo "Travis branch is in pull request $TRAVIS_PULL+REQUEST"
51-
- android-wait-for-emulator
52-
- adb devices #Display list of devices
53-
- adb shell input keyevent 82 &
54-
- ./gradlew connectedCheck --stacktrace
41+
- gradlew build
42+
5543

5644
before_install:
5745
- pip install --user codecov #Install codecov

0 commit comments

Comments
 (0)