-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
34 lines (28 loc) · 993 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
26
27
28
29
30
31
32
33
34
#
# Build configuration for Circle CI
#
general:
artifacts:
- /home/ubuntu/Unit_test/app/build/outputs/apk/
machine:
environment:
ANDROID_HOME: /usr/local/android-sdk-linux
dependencies:
override:
- echo y | android update sdk --no-ui --all --filter tools
- echo y | android update sdk --no-ui --all --filter build-tools-23.0.3
- chmod +x gradlew
test:
override:
# 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
# run tests against the emulator.
- ./gradlew connectedAndroidTest
# copy the build outputs to artifacts
# cp -r Unit_test/app/build/outputs $CIRCLE_ARTIFACTS
# copy the test results to the test results directory.
# cp -r Unit_test/app/build/outputs/androidTest-results/* $CIRCLE_TEST_REPORTS