Skip to content

Commit 19aabdb

Browse files
committed
circleci configuration
1 parent f711a93 commit 19aabdb

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.circleci/config.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: 2
2+
jobs:
3+
build:
4+
working_directory: ~/code
5+
docker:
6+
- image: circleci/android:api-28
7+
environment:
8+
JVM_OPTS: -Xmx3200m
9+
steps:
10+
- checkout
11+
- restore_cache:
12+
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
13+
- run:
14+
name: Chmod permissions #if permission for Gradlew Dependencies fail, use this.
15+
command: sudo chmod +x ./gradlew
16+
- run:
17+
name: Approve license for build tools
18+
command: (echo y; echo y; echo y; echo y; echo y; echo y) | $ANDROID_HOME/tools/bin/sdkmanager --licenses
19+
20+
- run:
21+
name: Download Dependencies
22+
command: ./gradlew :widget-helper:androidDependencies
23+
- save_cache:
24+
paths:
25+
- ~/.gradle
26+
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
27+
- run:
28+
name: Run Tests
29+
command: ./gradlew :widget-helper:lint test

0 commit comments

Comments
 (0)