diff options
Diffstat (limited to '.circleci/config.yml')
-rw-r--r-- | .circleci/config.yml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 000000000..bec559ed2 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,36 @@ +version: 2 + +jobs: + build: + docker: + - image: circleci/android:api-26-alpha + + working_directory: ~/AntennaPod + + environment: + GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx1536m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError"' + _JAVA_OPTIONS: "-Xms256m -Xmx1280m" + + steps: + - checkout + + - restore_cache: + keys: + - v1-android-{{ checksum "build.gradle" }} + # fallback to using the latest cache if no exact match is found + - v1-android- + + - run: + command: ./gradlew assembleDebug :core:testPlayDebugUnitTest -PdisablePreDex + no_output_timeout: 1800 + + - store_artifacts: + path: app/build/outputs/apk + destination: apks + + - save_cache: + paths: + - ~/.android + - ~/.gradle + - ~/android + key: v1-android-{{ checksum "build.gradle" }} |