Skip to content

Commit

Permalink
added travis configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves committed Jun 21, 2019
1 parent 931344c commit 87ce32d
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 4 deletions.
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
language: android

android:
components:
- tools
- platform-tools
- build-tools-28.0.3
- android-28
- extra-android-support
- extra-android-m2repository
- extra-google-m2repository

jdk:
- oraclejdk8

branches:
except:
- gh-pages

notifications:
email: false

cache:
directories:
- $HOME/.gradle

script:
- chmod +x ./gradlew
9 changes: 6 additions & 3 deletions only/src/main/java/com/skydoves/only/Only.kt
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ object Only {
name: String,
crossinline onDo: () -> Unit,
crossinline onDone: () -> Unit = {},
version: String = ""): Only {
version: String = ""
): Only {

onDo(name, 1, onDo, onDone, version)
return this@Only
Expand All @@ -170,7 +171,8 @@ object Only {
name: String,
crossinline onDo: () -> Unit,
crossinline onDone: () -> Unit = {},
version: String = ""): Only {
version: String = ""
): Only {

onDo(name, 2, onDo, onDone, version)
return this@Only
Expand All @@ -181,7 +183,8 @@ object Only {
name: String,
crossinline onDo: () -> Unit,
crossinline onDone: () -> Unit = {},
version: String = ""): Only {
version: String = ""
): Only {

onDo(name, 3, onDo, onDone, version)
return this@Only
Expand Down
2 changes: 1 addition & 1 deletion publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ publish {
artifactId = 'only'
publishVersion = versions.versionName
desc = 'This is Only by skydoves'
website = 'https://github.com/skydoves/Chance'
website = 'https://github.com/skydoves/Only'
issueTracker = "${website}/issues"
repository = "${website}.git"
}

0 comments on commit 87ce32d

Please sign in to comment.