Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit b3c3ae2

Browse files
committed
Merge pull request #121 from tjohns/ci-server
Update scripts for CI server integration
2 parents d7bab48 + b2589fd commit b3c3ae2

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

.travis.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Copyright 2014 Google Inc. All rights reserved.
2-
#
2+
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
55
# You may obtain a copy of the License at
6-
#
6+
#
77
# http://www.apache.org/licenses/LICENSE-2.0
8-
#
8+
#
99
# Unless required by applicable law or agreed to in writing, software
1010
# distributed under the License is distributed on an "AS IS" BASIS,
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -17,21 +17,17 @@ language: android
1717
android:
1818
components:
1919
- build-tools-21.1.2
20-
- android-20
2120
- android-21
21+
- addon-google_apis-google-21
2222
- extra-google-m2repository
2323
- extra-android-m2repository
24-
- sys-img-armeabi-v7a-android-21
24+
- sys-img-armeabi-v7a-addon-google_apis-google-21
2525

2626
notifications:
2727
email: false
2828

29-
env:
30-
matrix:
31-
- ANDROID_TARGET=android-21 ANDROID_ABI=armeabi-v7a
32-
3329
before_install:
34-
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
30+
- echo no | android create avd --force -n test -t "Google Inc.:Google APIs:21" --abi google_apis/armeabi-v7a
3531
- emulator -avd test -no-skin -no-audio -no-window &
3632

3733
before_script:

scripts/wait_for_emulator.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ until [[ "$bootanim" =~ "stopped" ]]; do
77
echo "$bootanim"
88
if [[ "$bootanim" =~ "not found" ]]; then
99
let "failcounter += 1"
10-
if [[ $failcounter -gt 3 ]]; then
10+
if [[ $failcounter -gt 6 ]]; then
1111
echo "Failed to start emulator"
1212
exit 1
1313
fi
1414
fi
15-
sleep 1
15+
sleep 10
1616
done
1717
echo "Done"

0 commit comments

Comments
 (0)