forked from proxer/ProxerAndroid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
30 lines (28 loc) · 1.19 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
machine:
java:
version: openjdk8
environment:
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
dependencies:
pre:
- 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 "extra-android-support"
- echo y | android update sdk --no-ui --all --filter "android-24"
- echo y | android update sdk --no-ui --all --filter "build-tools-24.0.3"
- echo y | android update sdk --no-ui --all --filter "tools"
- echo y | android update sdk --no-ui --all --filter "platform-tools"
override:
- ./gradlew dependencies --console=plain
test:
pre:
- emulator -avd circleci-android22 -no-audio -no-window:
background: true
parallel: true
override:
- ./gradlew lint assembleDebug assembleDebugAndroidTest -PdisablePreDex --console=plain
- circle-android wait-for-boot
- ./gradlew connectedAndroidTest -PdisablePreDex --console=plain
post:
- cp -r app/build/outputs $CIRCLE_ARTIFACTS
- cp -r app/build/outputs/androidTest-results/* $CIRCLE_TEST_REPORTS