From a5916d18193af3946f6fe253711e07e60ff07b58 Mon Sep 17 00:00:00 2001 From: Mattia Iavarone Date: Fri, 25 Aug 2017 11:41:08 +0200 Subject: [PATCH] Travis support (1) --- .travis.yml | 26 ++++++++++++++++++++++++++ build.gradle | 6 +++--- cameraview/build.gradle | 14 ++++++++++---- 3 files changed, 39 insertions(+), 7 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..2aca296b --- /dev/null +++ b/.travis.yml @@ -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 \ No newline at end of file diff --git a/build.gradle b/build.gradle index bed9eb31..fd653227 100644 --- a/build.gradle +++ b/build.gradle @@ -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 } diff --git a/cameraview/build.gradle b/cameraview/build.gradle index 6f5cb6d3..d65510d8 100644 --- a/cameraview/build.gradle +++ b/cameraview/build.gradle @@ -71,13 +71,19 @@ install { } } -Properties props = new Properties() -props.load(project.rootProject.file('local.properties').newDataInputStream()) +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'