Skip to content

Commit ce384da

Browse files
committed
Add circleci
1 parent e6e8ee3 commit ce384da

File tree

2 files changed

+63
-1
lines changed

2 files changed

+63
-1
lines changed

.circleci/config.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
version: 2.1
2+
orbs:
3+
android: circleci/[email protected]
4+
executors:
5+
android-executor:
6+
docker:
7+
- image: cimg/android:2024.09
8+
environment:
9+
JVM_OPTS: -Xmx3200m
10+
jobs:
11+
build:
12+
executor: android-executor
13+
steps:
14+
- checkout
15+
- restore_cache:
16+
keys:
17+
- v1-gradle-cache-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
18+
- run:
19+
name: Build APK
20+
command: ./gradlew assembleDebug
21+
- save_cache:
22+
paths:
23+
- ~/.gradle/caches
24+
- ~/.gradle/wrapper
25+
key: v1-gradle-cache-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
26+
- store_artifacts:
27+
path: app/build/outputs/apk/debug/app-debug.apk
28+
destination: app-debug.apk
29+
- store_test_results:
30+
path: app/build/test-results
31+
32+
unit_tests:
33+
executor: android-executor
34+
steps:
35+
- checkout
36+
- restore_cache:
37+
keys:
38+
- v1-gradle-cache-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
39+
- run:
40+
name: Run Unit Tests
41+
command: ./gradlew testDebugUnitTest
42+
- save_cache:
43+
paths:
44+
- ~/.gradle/caches
45+
- ~/.gradle/wrapper
46+
key: v1-gradle-cache-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
47+
- store_test_results:
48+
path: app/build/test-results/testDebugUnitTest
49+
- store_artifacts:
50+
path: app/build/reports/tests/testDebugUnitTest
51+
destination: unit_test_reports
52+
53+
workflows:
54+
version: 2
55+
build_and_test:
56+
jobs:
57+
- unit_tests
58+
- build:
59+
requires:
60+
- unit_tests

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@
33
![Header](/assets/images/feature_graphic.png)
44

55
[![](https://jitpack.io/v/waffiqaziz/country-picker-android.svg)](https://jitpack.io/#waffiqaziz/country-picker-android)
6-
![](https://github.com/waffiqaziz/country-picker-android/actions/workflows/unit_testing.yml/badge.svg)
6+
![Unit Testing](https://github.com/waffiqaziz/country-picker-android/actions/workflows/unit_testing.yml/badge.svg)
7+
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/waffiqaziz/country-picker-android/tree/master.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/waffiqaziz/country-picker-android/tree/master)
78
![GitHub License](https://img.shields.io/github/license/waffiqaziz/country-picker-android)
89
[![Visitors](https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Fgithub.com%2Fwaffiqaziz%2Fcountry-picker-android%2F&countColor=%2388d66c&style=flat)](https://visitorbadge.io/status?path=https%3A%2F%2Fgithub.com%2Fwaffiqaziz%2Fcountry-picker-android%2F)
910
![Monthly download statistics](https://jitpack.io/v/waffiqaziz/country-picker-android/month.svg)
1011
![GitHub Issues or Pull Requests](https://img.shields.io/github/issues/waffiqaziz/country-picker-android)
1112
![GitHub forks](https://img.shields.io/github/forks/waffiqaziz/country-picker-android)
1213
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fwaffiqaziz%2Fcountry-picker-android.svg?type=small)](https://app.fossa.com/projects/git%2Bgithub.com%2Fwaffiqaziz%2Fcountry-picker-android?ref=badge_small)
1314

15+
1416
A user-friendly country picker for Android that allows users to select countries and search using
1517
country names, country code names, and country phone codes.
1618

0 commit comments

Comments
 (0)