Update config.yml

This commit is contained in:
2019-02-22 17:44:19 +11:00
committed by GitHub
parent ee707305a0
commit 6fb22c36f0

View File

@@ -1,8 +1,30 @@
version: 2 version: 2
jobs: jobs:
build: build:
working_directory: ~/code
docker: docker:
- image: circleci/ruby:2.4.1 - image: circleci/android:api-25-alpha
environment:
JVM_OPTS: -Xmx3200m
steps: steps:
- checkout - 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