Skip to content

Commit

Permalink
enable ci with circleci (#1)
Browse files Browse the repository at this point in the history
* enable ci
* publish on bintray
  • Loading branch information
Mounir Boudraa authored and mboudraa committed Aug 16, 2018
1 parent 2b33e78 commit 7c202c1
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 5 deletions.
48 changes: 48 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
version: 2
jobs:
build:
working_directory: ~/Flow
docker:
- image: circleci/android:api-27-alpha
environment:
JVM_OPTS: -Xmx3200m
steps:
- checkout
- run:
name: Run Tests
command: ./gradlew test build
- store_artifacts:
path: flow/build/reports
destination: reports
- store_test_results:
path: flow/build/test-results
publish:
docker:
- image: circleci/android:api-27-alpha
environment:
JVM_OPTS: -Xmx3200m
steps:
- run:
name: Publish on Bintray
command: ./gradlew bintrayUpload -PbintrayUser=$BINTRAY_USER -PbintrayKey=$BINTRAY_API_KEY -PdryRun=false

workflows:
version: 2
build:
jobs:
- build

publish:
jobs:
- build:
filters: # required since `publish` has tag filters AND requires `build`
tags:
only: /.*/
- publish:
requires:
- build
filters:
tags:
only: /^v([0-9]*)./
branches:
only: master
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
[![CircleCI](https://circleci.com/gh/mboudraa/flow/tree/master.svg?style=svg)](https://circleci.com/gh/mboudraa/flow/tree/master)
[ ![Download](https://api.bintray.com/packages/mboudraa/maven/flow/images/download.svg) ](https://bintray.com/mboudraa/maven/flow/_latestVersion)

# Flow

If Redux/MVI and State machines architectures had a child, it would be **Flow**

## Download

Download the latest JAR or grab via Maven:

```xml
<dependency>
<groupId>com.mboudraa.flow</groupId>
<artifactId>flow</artifactId>
<version>0.1</version>
</dependency>
```

or Gradle:

```gradle
implementation 'com.mboudraa.flow:flow:0.1'
```

## A Few Words About Redux/MVI

Expand Down
12 changes: 8 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0-beta05'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.novoda:bintray-release:0.8.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

Expand All @@ -26,5 +25,10 @@ task clean(type: Delete) {
delete rootProject.buildDir
}

group 'com.mboudraa.flow'
version '1.0-SNAPSHOT'
ext.releaseInfo = [
"userOrg" : 'mboudraa',
"groupId" : 'com.mboudraa.flow',
"version" : '0.1',
"website" : 'https://github.com/mboudraa/flow',
"licences": ['Apache-2.0']
]
11 changes: 10 additions & 1 deletion flow/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
apply plugin: 'kotlin'

apply plugin: 'com.novoda.bintray-release'

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

testImplementation "junit:junit:4.12"
testImplementation "com.google.truth:truth:0.42"
}

publish {
userOrg = releaseInfo.userOrg
groupId = releaseInfo.groupId
publishVersion = releaseInfo.version
licences = releaseInfo.licences
website = releaseInfo.website
artifactId = 'flow'
desc = 'A State Machine DSL for Kotlin'
}

0 comments on commit 7c202c1

Please sign in to comment.