forked from Neamar/KISS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
25 lines (25 loc) · 1013 Bytes
/
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
dependencies:
pre:
- echo y | android update sdk --no-ui --all --filter tools,extra-android-m2repository,extra-android-support,extra-google-google_play_services,extra-google-m2repository,android-23
- echo y | android update sdk --no-ui --all --filter build-tools-23.0.2
test:
pre:
# start the emulator
- emulator -avd circleci-android22 -no-audio -no-window:
background: true
parallel: true
# wait for it to have booted
- circle-android wait-for-boot
override:
- adb start-server:
background: true
- ./gradlew test assembleDebug
# Unlock the lockscreen on the emulator
- adb shell input keyevent 82
- adb shell input keyevent 92
- ./gradlew connectedAndroidTest
post:
- cp -r app/build/outputs $CIRCLE_ARTIFACTS
# copy the test results to the test results directory.
- find app/build/test-results -name "*.xml" -exec cp {} $CIRCLE_TEST_REPORTS/ \;
- cp -r app/build/outputs/androidTest-results/* $CIRCLE_TEST_REPORTS