-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathcircle.yml
70 lines (57 loc) · 1.83 KB
/
circle.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
# CircleCi configuration version
version: 2
jobs:
build:
docker:
# specific environment version to avoid incompatible updates
- image: bitriseio/docker-android:v2017_09_09-06_45-b744
working_directory: ~/workspace
steps:
- run:
name: Lists installed targets
command: android list target
environment:
TERM: dumb
- run:
name: List available targets and other sdk modules
command: sdkmanager --list --include_obsolete --verbose
environment:
TERM: dumb
#- run:
# name: Install custom system image
# command: sdkmanager "system-images;android-23;google_apis;armeabi-v7a"
# environment:
# TERM: dumb
- run:
name: Create avd
# command: echo no | avdmanager create avd -n testEmulator -k "system-images;android-23;google_apis;armeabi-v7a"
command: echo no | avdmanager create avd -n testEmulator -k "system-images;android-24;default;armeabi-v7a"
environment:
TERM: dumb
- run:
name: Start emulator
command: /opt/android-sdk-linux/emulator/emulator -avd testEmulator -no-audio -no-window
background: true
environment:
TERM: dumb
- checkout
- run:
name: Wait for emulator
command: ./android-wait-for-boot.sh
environment:
TERM: dumb
- run:
name: Remove lock screen
command: adb shell input keyevent 82
environment:
TERM: dumb
- run:
name: Unit testing
command: ./gradlew test
environment:
TERM: dumb
- run:
name: Instrumentation testing
command: ./gradlew connectedCheck
environment:
TERM: dumb