Travis support (1)

pull/2/head
Mattia Iavarone 7 years ago
parent 56a661365d
commit a5916d1819
  1. 26
      .travis.yml
  2. 6
      build.gradle
  3. 10
      cameraview/build.gradle

@ -0,0 +1,26 @@
language: android
branches:
only:
- master
sudo: false
jdk:
- oraclejdk8
android:
components:
- tools
- platform-tools
- build-tools-26.0.1
- android-26
- doc-26
deploy:
provider: script
script: ./gradlew bintrayUpload
skip_cleanup: true
on:
branch: master
tags: true

@ -21,9 +21,9 @@ allprojects {
}
ext {
compileSdkVersion = 25
buildToolsVersion = "25.0.2"
supportLibVersion = '25.3.1'
compileSdkVersion = 26
buildToolsVersion = "26.0.1"
supportLibVersion = '26.0.1'
minSdkVersion = 15
targetSdkVersion = 25
}

@ -71,13 +71,19 @@ install {
}
}
def bintrayUser = System.getenv("BINTRAY_USER")
def bintrayKey = System.getenv("BINTRAY_KEY")
if (bintrayKey == null) {
Properties props = new Properties()
props.load(project.rootProject.file('local.properties').newDataInputStream())
bintrayUser = props.getProperty('bintray.user')
bintrayKey = props.get('bintray.key')
}
bintray {
// https://github.com/bintray/gradle-bintray-plugin
user = props.getProperty('bintray.user')
key = props.get('bintray.key')
user = bintrayUser
key = bintrayKey
configurations = ['archives']
pkg {
repo = 'android'

Loading…
Cancel
Save