From 6fb22c36f034d3f13e41fffdffb6d198be5df71b Mon Sep 17 00:00:00 2001 From: hmalik144 Date: Fri, 22 Feb 2019 17:44:19 +1100 Subject: [PATCH] Update config.yml --- .circleci/config.yml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 08fe33e..2c56417 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,8 +1,30 @@ version: 2 jobs: build: + working_directory: ~/code docker: - - image: circleci/ruby:2.4.1 + - image: circleci/android:api-25-alpha + environment: + JVM_OPTS: -Xmx3200m steps: - checkout - - run: echo "A first hello" + - restore_cache: + key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} +# - run: +# name: Chmod permissions #if permission for Gradlew Dependencies fail, use this. +# command: sudo chmod +x ./gradlew + - run: + name: Download Dependencies + command: ./gradlew androidDependencies + - save_cache: + paths: + - ~/.gradle + key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} + - run: + name: Run Tests + command: ./gradlew lint test + - store_artifacts: # for display in Artifacts: https://circleci.com/docs/2.0/artifacts/ + path: app/build/reports + destination: reports + - store_test_results: # for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/ + path: app/build/test-results