Files
Android-developer-tech-test…/.circleci/config.yml
2020-01-24 18:42:30 +00:00

37 lines
1.0 KiB
YAML

version: 2
jobs:
build:
working_directory: ~/code
docker:
- image: circleci/android:api-29
environment:
- CIRCLE_COMPARE_URL: https://github.com/hmalik144/SquareGithubRepo/compare/d44aa77b0a5382f4365ded4068397857333b48e7...9aa146df2b9eaa36e6e942cec657abf3100eba20
- JVM_OPTS: -Xmx3200m
steps:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Chmod permissions
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:
path: app/build/reports
destination: reports
- store_test_results:
path: app/build/test-results
workflows:
version: 2
workflow:
jobs:
- build