Skip to content
This repository was archived by the owner on Jun 28, 2019. It is now read-only.

Commit 68fc08a

Browse files
committed
Set up CircleCI config
1 parent e2e9b03 commit 68fc08a

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.circleci/config.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
version: 2.1
2+
executors:
3+
default:
4+
docker:
5+
- image: circleci/android:api-28
6+
environment:
7+
JAVA_OPTS: -Xmx3200m
8+
9+
commands:
10+
setup:
11+
steps:
12+
- restore_cache:
13+
key: v1-gradle-cache-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
14+
- run:
15+
name: Download Dependencies
16+
command: ./gradlew androidDependencies
17+
- save_cache:
18+
paths:
19+
- ~/.gradle
20+
key: v1-gradle-cache-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
21+
unit_test:
22+
steps:
23+
- run:
24+
name: Run Tests
25+
command: ./gradlew lint test
26+
- store_artifacts:
27+
path: app/build/reports
28+
destination: reports
29+
- store_test_results:
30+
path: app/build/test-results
31+
32+
jobs:
33+
run_test:
34+
executor:
35+
name: default
36+
steps:
37+
- checkout
38+
- setup
39+
- unit_test
40+
41+
workflows:
42+
test:
43+
jobs:
44+
- run_test

0 commit comments

Comments
 (0)