-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcircle.yml
51 lines (44 loc) · 1.87 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
#
# Build configuration for Circle CI
#
general:
artifacts:
- /home/ubuntu/Group-chat/app/build/outputs/apk/
machine:
java:
version: oraclejdk8
environment:
ANDROID_HOME: /usr/local/android-sdk-linux
dependencies:
pre:
- chmod +x gradlew
override:
- echo y | android update sdk --no-ui --all --filter tools,platform-tools,build-tools-26.0.1,android-26,extra-google-m2repository,extra-google-google_play_services,extra-android-support
- echo y | android update sdk --no-ui --filter "android-25,build-tools-25.0.2"
- echo y | android update sdk --no-ui --all --filter "platform-tools, tools"
- echo y | android update sdk --no-ui --all --filter "android-25, build-tools-25.0.2"
- echo y | android update sdk --no-ui --all --filter "extra-android-m2repository"
- echo y | android update sdk --no-ui --all --filter "extra-google-m2repository"
- echo y | android update sdk --no-ui --all --filter "addon-google_apis-google-25"
- echo y | android update sdk --no-ui --all --filter "extra-android-support"
- ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies
test:
pre:
# start the emulator
# - android create avd --force -n test -t android-21 --abi armeabi-v7a
- emulator -avd circleci-android22 -no-window:
background: true
parallel: true
override:
- (./gradlew assemble):
timeout: 360
# run tests against the emulator after waiting.
# - "adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done; input keyevent 82'"
- circle-android wait-for-boot:
timeout: 720
- ./gradlew connectedCheck
post:
- bash <(curl -s https://codecov.io/bash)
checkout:
post:
- cp -r android-licenses/. $ANDROID_HOME/licenses