forked from PaulWoitaschek/Voice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
34 lines (34 loc) · 1.32 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
general:
artifacts:
- app/build/outputs/apk
- app/build/test-results
- app/build/reports
machine:
environment:
GRADLE_OPTS: '-Dorg.gradle.daemon=false -Dorg.gradle.jvmargs="-Xmx4048m -XX:+HeapDumpOnOutOfMemoryError"'
ANDROID_NDK_HOME: ${ANDROID_NDK}
QEMU_AUDIO_DRV: none # Disable emulator audio
java:
version: oraclejdk8
dependencies:
cache_directories:
- ~/.android
pre:
# licenses for constraint layout
- mkdir "$ANDROID_HOME/licenses" || true
- echo -e "\ne6b7c2ab7fa2298c15165e9583d0acf0b04a2232" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- 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-25"
- echo y | android update sdk --no-ui --all --filter "build-tools-25.0.3"
override:
# workaround from https://code.google.com/p/android/issues/detail?id=212128 for constraint layout
- ./gradlew dependencies || true
test:
pre:
- emulator -avd circleci-android22 -no-window -gpu off:
background: true
parallel: true
- circle-android wait-for-boot
override:
- ./gradlew test connectedAndroidTest:
timeout: 720