Skip to content

Commit 5b0b02b

Browse files
authored
Merge pull request yuyakaido#15 from yuyakaido/circleci
Added CircleCI 2.0 integration
2 parents 0b939aa + 5b080c1 commit 5b0b02b

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.circleci/config.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# https://circleci.com/docs/2.0/language-android/
2+
3+
version: 2
4+
jobs:
5+
build:
6+
working_directory: ~/code
7+
docker:
8+
- image: circleci/android:api-25-alpha
9+
environment:
10+
JVM_OPTS: -Xmx3200m
11+
steps:
12+
- checkout
13+
- restore_cache:
14+
key: jars-{{ checksum "build.gradle" }}-{{ checksum "cardstackview/build.gradle" }}
15+
- run:
16+
name: Download Dependencies
17+
command: ./gradlew androidDependencies
18+
- save_cache:
19+
paths:
20+
- ~/.gradle
21+
key: jars-{{ checksum "build.gradle" }}-{{ checksum "cardstackview/build.gradle" }}
22+
- run:
23+
name: Run Tests
24+
command: ./gradlew lint test
25+
- store_artifacts:
26+
path: cardstackview/build/reports
27+
destination: reports
28+
- store_test_results:
29+
path: cardstackview/build/test-results

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
66
[![Download](https://api.bintray.com/packages/yuyakaido/maven/CardStackView/images/download.svg)](https://bintray.com/yuyakaido/maven/CardStackView/_latestVersion)
7+
[![CircleCI](https://circleci.com/gh/yuyakaido/CardStackView.svg?style=svg)](https://circleci.com/gh/yuyakaido/CardStackView)
78

89
# Overview
910

0 commit comments

Comments
 (0)