forked from getodk/collect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
23 lines (19 loc) · 898 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
machine:
environment:
ANDROID_HOME: /usr/local/android-sdk-linux
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
_JAVA_OPTIONS: "-Xms512m -Xmx1024m"
dependencies:
override:
- echo y | android update sdk --no-ui --all --filter tools,platform-tools,build-tools-25.0.0,android-22,extra-google-m2repository,extra-google-google_play_services,extra-android-support
- ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies
test:
pre:
- ./gradlew assembleRelease
- ./gradlew assembleAndroidTest
override:
- ./gradlew testReleaseUnitTest
- cp -r collect_app/build/outputs/apk $CIRCLE_ARTIFACTS
post:
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- find . -type f -regex ".*/build/test-results/.*.xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;