2018-05-17 08:42:07 +02:00
|
|
|
version: 2
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
2018-05-17 08:50:39 +02:00
|
|
|
- image: circleci/android:api-26-alpha
|
2018-05-17 08:42:07 +02:00
|
|
|
|
|
|
|
working_directory: ~/AntennaPod
|
|
|
|
|
|
|
|
environment:
|
|
|
|
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx1536m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError"'
|
|
|
|
_JAVA_OPTIONS: "-Xms256m -Xmx1280m -XX:MaxPermSize=350m"
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
|
|
|
|
- restore_cache:
|
|
|
|
keys:
|
|
|
|
- v1-android-{{ checksum "build.gradle" }}
|
|
|
|
# fallback to using the latest cache if no exact match is found
|
|
|
|
- v1-android-
|
|
|
|
|
2018-05-17 08:43:46 +02:00
|
|
|
- run:
|
|
|
|
command: ./gradlew assembleDebug -PdisablePreDex
|
2018-05-17 08:42:07 +02:00
|
|
|
no_output_timeout: 1800
|
|
|
|
|
|
|
|
- store_artifacts:
|
2018-05-17 08:45:57 +02:00
|
|
|
path: app/build/outputs/apk
|
2018-05-17 08:42:07 +02:00
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
paths:
|
|
|
|
- ~/.android
|
|
|
|
- ~/android
|
|
|
|
key: v1-android-{{ checksum "build.gradle" }}
|