-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy pathcircle.yml
39 lines (36 loc) · 1.53 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
machine:
environment:
_JAVA_OPTIONS: "-Xms512m -Xmx2048m"
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xms512m -Xmx2048m -XX:+HeapDumpOnOutOfMemoryError -XX:MaxPermSize=512M"'
ANDROID_HOME: "/usr/local/android-sdk-linux"
java:
version: oraclejdk8
dependencies:
pre:
- echo y | android update sdk --no-ui --all --filter "tools"
- echo y | android update sdk --no-ui --all --filter "build-tools-23.0.3"
- echo y | android update sdk --no-ui --all --filter tool,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.4.0
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
# unlock the emulator screen
- sleep 30
- adb shell input keyevent 82
# run tests against the emulator.
- ./gradlew connectedAndroidTest -PdisablePreDex
# run checkstyle, unitTest, lint
- ./gradlew check
# copy the build outputs to artifacts
- cp -r sample/build/outputs $CIRCLE_ARTIFACTS
# copy the test results to the test results directory.
- cp -r sample/build/outputs/androidTest-results/* $CIRCLE_TEST_REPORTS
#Not needed for now
#post:
#- mkdir -p $CIRCLE_TEST_REPORTS/junit/
#- find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;