Skip to content

Commit 1062270

Browse files
author
Riyaldi Hasan
authored
Merge pull request #1 from riyhs/circleci-project-setup
Circleci project setup
2 parents 5d348ec + d1cd84c commit 1062270

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.circleci/config.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
version: 2.1
2+
3+
orbs:
4+
android: circleci/[email protected]
5+
6+
jobs:
7+
build:
8+
executor: android/android
9+
steps:
10+
- checkout
11+
- restore_cache:
12+
key: android-orb-v1-
13+
- run:
14+
name: Chmod permissions
15+
command: sudo chmod +x ./gradlew
16+
- run:
17+
name: Download Dependencies
18+
command: ./gradlew androidDependencies
19+
- save_cache:
20+
key: 'android-orb-v1-{{ epoch }}'
21+
paths:
22+
- ~/.android/build-cache
23+
- ~/.android/cache
24+
- run:
25+
name: Run Build
26+
command: ./gradlew build
27+
- store_artifacts:
28+
path: app/build/reports
29+
destination: reports
30+
- run:
31+
name: Run Tests
32+
command: ./gradlew lint test
33+
- store_test_results:
34+
path: app/build/test-results
35+
- store_artifacts:
36+
path: app/build/outputs/apk/debug/
37+
destination: artifact-file

0 commit comments

Comments
 (0)