This repository has been archived by the owner on May 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
36 lines (31 loc) · 1.56 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
machine:
environment:
_JAVA_OPTIONS: "-Xms512m -Xmx2048m"
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xms512m -Xmx2048m -XX:+HeapDumpOnOutOfMemoryError -XX:MaxPermSize=512M"'
dependencies:
pre:
- echo y | android update sdk -u -a -t tool
- ( while [ 1 ]; do sleep 5; echo y; done ) | android update sdk --no-ui --all --filter platform-tools,tools,android-23,build-tools-23.0.3,extra-android-m2repository,extra-android-support,extra-google-m2repository
cache_directories:
- ~/.android
override:
- chmod +x gradlew
- ./gradlew dependencies
test:
override:
- ./gradlew build -PdisablePreDex --stacktrace
post:
# Apks
- mkdir -p $CIRCLE_ARTIFACTS/apk && find . -type f -regex ".*build/outputs/apk/.*apk" -exec cp {} $CIRCLE_ARTIFACTS/apk/ \;
- rm -rf $CIRCLE_ARTIFACTS/apk/*unaligned*
# Lint
- mkdir -p $CIRCLE_TEST_REPORTS/lint/
- find . -type f -regex ".*lint-results-*.*" -exec cp --parent {} $CIRCLE_TEST_REPORTS/lint/ \;
# Checkstyle
- mkdir -p $CIRCLE_TEST_REPORTS/checkstyle/
- find . -type f -regex ".*build/reports/checkstyle/.*" -exec cp --parent {} $CIRCLE_TEST_REPORTS/checkstyle/ \;
# Unit tests
- mkdir -p $CIRCLE_TEST_REPORTS/junit-xml/
- find . -type f -regex ".*test-results.*xml" -exec cp --parent {} $CIRCLE_TEST_REPORTS/junit-xml/ \;
- mkdir -p $CIRCLE_TEST_REPORTS/junit-html/
- find . -type f -regex ".*build/reports/tests/.*" -exec cp --parent {} $CIRCLE_TEST_REPORTS/junit-html/ \;