From fd51262ad8284c1d18fdc063a73eff92e4a464f3 Mon Sep 17 00:00:00 2001 From: Mike Sinkovsky Date: Wed, 28 Nov 2018 13:00:13 +0500 Subject: [PATCH] travis/appveyor: publish dev builds --- .appveyor.yml | 3 ++- .travis.yml | 8 +++++++- libui/build.gradle | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 316a7095..8223b53b 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -7,7 +7,8 @@ build_script: - gradlew -PpublishMode build after_build: - - gradlew -PpublishMode bintrayUpload + - if %APPVEYOR_REPO_TAG%==true ( gradlew -PpublishMode bintrayUpload ) + else ( gradlew -PpublishMode -PVERSION_SUFFIX=-dev bintrayUpload ) - copy libui\build\classes\kotlin\windows\main\libui-cinterop-libui.klib libui-windows.klib - copy libui\build\classes\kotlin\windows\main\libui.klib libui-ktx-windows.klib - 7z a libui-samples-windows.zip diff --git a/.travis.yml b/.travis.yml index b926322c..61c80558 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,13 @@ script: - ./gradlew -PpublishMode build after_success: - - ./gradlew -PpublishMode bintrayUpload + - | + if [[ "x${TRAVIS_TAG}" != "x" ]] + then + ./gradlew -PpublishMode bintrayUpload + else + ./gradlew -PpublishMode -PVERSION_SUFFIX=-dev bintrayUpload + fi - | case "${TRAVIS_OS_NAME}" in osx) export TARGET=macosx ;; diff --git a/libui/build.gradle b/libui/build.gradle index 7acc9f45..c51d58a5 100644 --- a/libui/build.gradle +++ b/libui/build.gradle @@ -16,7 +16,7 @@ apply plugin: 'maven-publish' apply plugin: 'com.jfrog.bintray' group = GROUP -version = VERSION +version = "${VERSION}${VERSION_SUFFIX}" task downloadArchive(type: Download) { def release = "https://github.com/andlabs/libui/releases/download/$LIBUI_VERSION/libui-$LIBUI_VERSION"