Index: .circleci/config.yml |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/.circleci/config.yml |
@@ -0,0 +1,34 @@ |
+version: 2 |
+jobs: |
+ build: |
+ working_directory: ~/adblockplussbrowser |
+ docker: |
+ - image: circleci/android:api-25-alpha |
+ environment: |
+ JVM_OPTS: -Xmx3200m |
+ steps: |
+ - checkout |
+ - restore_cache: |
+ key: jars-{{ checksum "build.gradle" }}-{{ checksum "adblockplussbrowser/build.gradle" }} |
+ - run: |
+ name: Download Dependencies |
+ command: ./gradlew androidDependencies |
+ - save_cache: |
+ paths: |
+ - ~/.gradle |
+ key: jars-{{ checksum "build.gradle" }}-{{ checksum "adblockplussbrowser/build.gradle" }} |
+ - run: |
+ name: Run Lint Checks |
+ command: ./gradlew lint checkDebug |
+ - store_artifacts: |
+ path: adblockplussbrowser/build/reports/ |
+ destination: reports/ |
+ - run: |
+ name: Assemble Debug |
+ command: ./gradlew assembleDebug |
+ - run: |
+ name: Assemble Release |
+ command: ./gradlew assembleRelease |
+ - store_artifacts: |
+ path: adblockplussbrowser/build/outputs/apk/ |
+ destination: apks/ |
diegocarloslima
2017/08/07 21:25:21
Looks good, but where some needed variables such a
jens
2017/08/08 10:36:49
CircleCi provides docker images for Android builds
|