-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba98660
commit d22c75b
Showing
24 changed files
with
1,307 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
# | ||
# Deploy a jar, source jar, and javadoc jar to Sonatype's snapshot repo. | ||
# | ||
# Adapted from https://coderwall.com/p/9b_lfq and | ||
# http://benlimmer.com/2013/12/26/automatically-publish-javadoc-to-gh-pages-with-travis-ci/ and | ||
# https://github.com/JakeWharton/RxBinding/blob/master/.buildscript/deploy_snapshot.sh | ||
|
||
SLUG="vanniktech/junit-rules" | ||
JDK="oraclejdk8" | ||
BRANCH="master" | ||
|
||
set -e | ||
|
||
if [ "$TRAVIS_REPO_SLUG" != "$SLUG" ]; then | ||
echo "Skipping snapshot deployment: wrong repository. Expected '$SLUG' but was '$TRAVIS_REPO_SLUG'." | ||
elif [ "$TRAVIS_JDK_VERSION" != "$JDK" ]; then | ||
echo "Skipping snapshot deployment: wrong JDK. Expected '$JDK' but was '$TRAVIS_JDK_VERSION'." | ||
elif [ "$TRAVIS_PULL_REQUEST" != "false" ]; then | ||
echo "Skipping snapshot deployment: was pull request." | ||
elif [ "$TRAVIS_BRANCH" != "$BRANCH" ]; then | ||
echo "Skipping snapshot deployment: wrong branch. Expected '$BRANCH' but was '$TRAVIS_BRANCH'." | ||
else | ||
echo "Deploying snapshot..." | ||
./gradlew clean build uploadArchives | ||
echo "Snapshot deployed!" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Built application files | ||
*.apk | ||
*.ap_ | ||
|
||
# Files for the Dalvik VM | ||
*.dex | ||
|
||
# Java class files | ||
*.class | ||
|
||
# Generated files | ||
bin/ | ||
gen/ | ||
|
||
# Gradle files | ||
.gradle/ | ||
build/ | ||
|
||
# Local configuration file (sdk path, etc) | ||
local.properties | ||
|
||
# Proguard folder generated by Eclipse | ||
proguard/ | ||
|
||
# Android Studio | ||
.idea | ||
.gradle | ||
build/ | ||
*.iml | ||
|
||
# Windows thumbnail db | ||
Thumbs.db | ||
|
||
# OSX files | ||
.DS_Store | ||
|
||
# Eclipse project files | ||
.classpath | ||
.project | ||
|
||
# Oh my zsh plugins | ||
.gradletasknamecache | ||
|
||
# Fastlane | ||
fastlane/metadata/android/screenshots.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
language: java | ||
|
||
jdk: | ||
- oraclejdk8 | ||
|
||
before_install: | ||
- pip install --user codecov | ||
|
||
install: true | ||
|
||
script: ./gradlew clean build | ||
|
||
after_success: | ||
- .buildscript/deploy_snapshot.sh | ||
- codecov | ||
|
||
env: | ||
global: | ||
- secure: "5km2ETNz3UF9XoXxIrVdUL9zF4yA+WAKLBJWGYSMv5Z8Vw23veIGSgf2beVTVVLqHExS385MVkK20cgr97Y2JYLkrsx8uh+E3u9+Xh+wOgKqdGAWt/de/B8OzDgAMsT22Q4Pb7E4lNALD+ERgoQRkKpqbye5gijU6yD1rilFAGRq45cgEUB1ogm/YlMZSs2sIsYzvBWBA367ySJpnN8eKuKFpRvuoyUCyAvC/Ih4vWZE+dyxO/dMAVFOEkgoPpFcN+PvxfcBx6ZUaRXb3ZifgcOrYEb9ARWuxJ2Qm2dksZztxY36PLtAwGX8fi3k8zGOdat/lxj+QKqS8/wppyNIA+Doi0rZrszblDGjAlwT86gUile+UNth+I3hqQV7i8EzcdZpBHOsls9CstUH/bmFEFugCxIDBktYWONOamwHHUf9Rl1FEnVcKEU4vgtag8EIO6+Q4PWetFAC+3nubJVy7eM/y8hs645aEHEbByGrxDhBc+iSANn9cFKU+RcOnncsIDpTQkBmVeLLbUqTbsUJmwOIuJClQ1eQc4CnRn1THlA67Fk5dYhYKuYQjU5ny2lbbag0tvteA6pfvlixgcE6lxxWzdA1M2WmTgT/oL7SGTokLR7BtwCeRZnM+pMn60uQXGYi4wK7sfwBPs8GsXbk9c6r1X5qfHaHXxesSgdu4ZQ=" | ||
- secure: "W5JEBBMn9v+8KmY4FkSzEHDpP01h9JULPXf/iPh5n8kEsjIO7HLjNzhkrA0w3gfzYG+ZOEB6gAi5akHYGEdP3qKa0rEhbjjvFPW2z3XiPkWNdEArAFboUkmpNEuSgpAhrjK/69bhF/b/3FUWoyh0Hc2w5kii8/quGYQHisGcSqCqDZqJXdHAo1h3gIVzZKp5GfLgd2Lj5r4BSj1n1mIH3Q94/jONJ1hroItwUkxB5lFp2a4MWCbD+kHy3tQi4pWzXcUpX+z/d6G1hFFFYeQ0Ps6q1At8MDv2V5012nXbYZ4CJDaAu2eBcAIinoP2DtxikhAHqL9pPe9/+RWrGBA4nFALvxOZX0GaDAobAkOhXkZmu2hvshGQi5+uPbCxlMuOTnwf+v8waqNX3PSCc2xZnGc/xF0bBJwx4IfaWir9hRNJonY5qQZapev7kFoKjwsErzazNYlpJVtP3LxLTUsE94pW/tZsqYdoS8+lDkgQijr6YuNut29UQq6WHgBMMDqVjAwErcZZdLKqBbiacFF4Ki/JRV3+HWw6W05XxQpba/NK4vxlWV/QKrXhC5d1Ptjzvs8fpRqLcTOVMhcBGwv08Wj9pIYeX83R3lz8mCVnNXJbJvWKDfVdtrKyVfIIclg6HcjlTVt/v1qHVXj76snRiuta6gzz6xAIESOxnG5FgQc=" | ||
|
||
branches: | ||
except: | ||
- gh-pages | ||
|
||
notifications: | ||
email: false | ||
|
||
sudo: false | ||
|
||
cache: | ||
directories: | ||
- $HOME/.gradle | ||
- $HOME/.m2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
apply plugin: 'com.github.ben-manes.versions' | ||
apply plugin: 'com.vanniktech.code.quality.tools' | ||
apply plugin: 'com.vanniktech.android.junit.jacoco' | ||
|
||
buildscript { | ||
ext.deps = [ | ||
'test': [ | ||
'assertj3': "org.assertj:assertj-core:3.8.0", | ||
'junit': 'junit:junit:4.12', | ||
], | ||
] | ||
|
||
repositories { | ||
mavenCentral() | ||
jcenter() | ||
} | ||
|
||
dependencies { | ||
classpath 'com.vanniktech:gradle-code-quality-tools-plugin:0.8.0' | ||
classpath 'com.vanniktech:gradle-android-junit-jacoco-plugin:0.7.0' | ||
|
||
classpath 'com.github.ben-manes:gradle-versions-plugin:0.15.0' | ||
} | ||
} | ||
|
||
codeQualityTools { | ||
checkstyle { | ||
toolVersion = '8.1' | ||
} | ||
pmd { | ||
toolVersion = '5.8.1' | ||
} | ||
detekt { | ||
toolVersion = '1.0.0.M13.2' | ||
} | ||
ktlint { | ||
toolVersion = '0.9.1' | ||
} | ||
lint { | ||
textReport = true | ||
} | ||
} | ||
|
||
subprojects { | ||
task allDependencies(type: DependencyReportTask) {} | ||
|
||
repositories { | ||
jcenter() | ||
} | ||
|
||
group = GROUP | ||
version = VERSION_NAME | ||
} | ||
|
||
task wrapper(type: Wrapper) { | ||
gradleVersion = '4.1' | ||
distributionType = Wrapper.DistributionType.ALL | ||
} |
Oops, something went wrong.