提交 945bfd47 编写于 作者: J jessyan

add to travis

上级 db40ff86
language: android
jdk: oraclejdk8
env:
global:
- ANDROID_API_LEVEL=25
- ANDROID_BUILD_TOOLS_VERSION=25.0.2
android:
components:
# The BuildTools version used by your project
- tools
- platform-tools
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
- extra-android-m2repository
- extra-google-android-support
# The SDK version used to compile your project
- android-$ANDROID_API_LEVEL
licenses:
- '.+'
script: "./gradlew build"
\ No newline at end of file
# MVPArms # MVPArms
[ ![Bintray](https://img.shields.io/badge/bintray-v1.2.4-brightgreen.svg) ](https://bintray.com/jessyancoding/maven/MVPArms/1.2.4/link) [ ![Bintray](https://img.shields.io/badge/bintray-v1.2.4-brightgreen.svg) ](https://bintray.com/jessyancoding/maven/MVPArms/1.2.4/link)
[ ![Build Status](https://travis-ci.org/JessYanCoding/MVPArms.svg?branch=master) ](https://travis-ci.org/JessYanCoding/MVPArms)
[ ![API](https://img.shields.io/badge/API-15%2B-blue.svg?style=flat-square) ](https://developer.android.com/about/versions/android-4.0.3.html) [ ![API](https://img.shields.io/badge/API-15%2B-blue.svg?style=flat-square) ](https://developer.android.com/about/versions/android-4.0.3.html)
[ ![License](http://img.shields.io/badge/License-Apache%202.0-blue.svg?style=flat-square) ](http://www.apache.org/licenses/LICENSE-2.0) [ ![License](http://img.shields.io/badge/License-Apache%202.0-blue.svg?style=flat-square) ](http://www.apache.org/licenses/LICENSE-2.0)
......
# MVPArms # MVPArms
[ ![Bintray](https://img.shields.io/badge/bintray-v1.2.4-brightgreen.svg) ](https://bintray.com/jessyancoding/maven/MVPArms/1.2.4/link) [ ![Bintray](https://img.shields.io/badge/bintray-v1.2.4-brightgreen.svg) ](https://bintray.com/jessyancoding/maven/MVPArms/1.2.4/link)
[ ![Build Status](https://travis-ci.org/JessYanCoding/MVPArms.svg?branch=master) ](https://travis-ci.org/JessYanCoding/MVPArms)
[ ![API](https://img.shields.io/badge/API-15%2B-blue.svg?style=flat-square) ](https://developer.android.com/about/versions/android-4.0.3.html) [ ![API](https://img.shields.io/badge/API-15%2B-blue.svg?style=flat-square) ](https://developer.android.com/about/versions/android-4.0.3.html)
[ ![License](http://img.shields.io/badge/License-Apache%202.0-blue.svg?style=flat-square) ](http://www.apache.org/licenses/LICENSE-2.0) [ ![License](http://img.shields.io/badge/License-Apache%202.0-blue.svg?style=flat-square) ](http://www.apache.org/licenses/LICENSE-2.0)
......
...@@ -2,7 +2,11 @@ apply plugin: 'com.jfrog.bintray' ...@@ -2,7 +2,11 @@ apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.github.dcendents.android-maven' apply plugin: 'com.github.dcendents.android-maven'
Properties properties = new Properties() Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream()) boolean isHasFile = false
if (project.rootProject.findProject('local.properties') != null){
isHasFile = true
properties.load(project.rootProject.file('local.properties').newDataInputStream())
}
def gitUrl = 'https://github.com/JessYanCoding/MVPArms.git' // Git仓库的url def gitUrl = 'https://github.com/JessYanCoding/MVPArms.git' // Git仓库的url
def siteUrl = 'https://github.com/JessYanCoding/MVPArms' // 项目的主页 def siteUrl = 'https://github.com/JessYanCoding/MVPArms' // 项目的主页
...@@ -12,8 +16,9 @@ group = "me.jessyan" ...@@ -12,8 +16,9 @@ group = "me.jessyan"
bintray { bintray {
user = properties.getProperty("bintray.user") user = isHasFile ? properties.getProperty("bintray.user") : System.getenv("bintray.user")
key = properties.getProperty("bintray.apikey") key = isHasFile ? properties.getProperty("bintray.apikey") : System.getenv("bintray.apikey")
pkg { pkg {
repo = 'maven' repo = 'maven'
name = 'MVPArms' name = 'MVPArms'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册