From 2cb94856fd6f8e7016871e6bc537478d7ffb1ab7 Mon Sep 17 00:00:00 2001 From: Skylot Date: Wed, 17 Jan 2018 11:02:31 +0300 Subject: [PATCH] build: setup bintray unstable upload --- .travis.yml | 23 +++++++++++++++++++++-- README.md | 5 ++--- bintray.json | 25 +++++++++++++++++++++++++ 3 files changed, 48 insertions(+), 5 deletions(-) create mode 100644 bintray.json diff --git a/.travis.yml b/.travis.yml index 2d37e4d7b..07879885b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,15 +2,34 @@ language: java jdk: - oraclejdk8 +env: + - TERM=dumb + before_install: - chmod +x gradlew script: - - TERM=dumb ./gradlew clean build dist + - sed -i " 1 s/.*/&-b$TRAVIS_BUILD_NUMBER-$(git rev-parse --short HEAD)/" version + - cat version + - sed -i "s/BUILD_VERSION/$(head -c -1 version)/g" bintray.json + - ./gradlew clean build after_success: - - TERM=dumb ./gradlew jacocoTestReport + - ./gradlew clean build jacocoTestReport - bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports" + - ./gradlew clean sonarqube -Dsonar.host.url=$SONAR_HOST -Dsonar.organization=$SONAR_ORG -Dsonar.login=$SONAR_TOKEN + - ./gradlew clean dist + +deploy: + provider: bintray + file: bintray.json + user: skylot + key: + secure: bBzfhraRwT5w+FkAcQnWJQgt4i894k595g4gNFf8dGpBsvPUvGzoa/SUaokrmlj5UCFc12k7j6aZswNITGjBuAf2fDVRwMQCH9ORiqIcJWuemQPHB7iAQjITGXKwef6zWKcZSkVuMtUMmGymYSsqpya+pSqwdP5rLbWPgGixEaQ= + skip_cleanup: true + on: + branch: master + tags: false sudo: false diff --git a/README.md b/README.md index a6f736d97..77f88b843 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ ## JADX [![Build Status](https://travis-ci.org/skylot/jadx.png?branch=master)](https://travis-ci.org/skylot/jadx) -[![Gitlab CI](https://gitlab.com/skylot/jadx/badges/master/build.svg)](https://gitlab.com/skylot/jadx/builds) -[![Jadx Core Coverage](https://gitlab.com/skylot/jadx/badges/master/coverage.svg)](https://gitlab.com/skylot/jadx/builds) [![Code Coverage](https://codecov.io/gh/skylot/jadx/branch/master/graph/badge.svg)](https://codecov.io/gh/skylot/jadx) [![Coverity Scan Build Status](https://scan.coverity.com/projects/2166/badge.svg)](https://scan.coverity.com/projects/2166) [![SonarQube Bugs](https://sonarcloud.io/api/badges/measure?key=jadx&metric=bugs)](https://sonarcloud.io/dashboard?id=jadx) @@ -18,8 +16,9 @@ Command line and GUI tools for produce Java source code from Android Dex and Apk ### Downloads -- [unstable](https://gitlab.com/skylot/jadx/builds/artifacts/master/browse/build?job=build) +- [unstable](https://bintray.com/skylot/jadx/unstable#files) - from [github](https://github.com/skylot/jadx/releases) +- from [bintray](https://bintray.com/skylot/jadx/releases#files) - from [sourceforge](http://sourceforge.net/projects/jadx/files/) diff --git a/bintray.json b/bintray.json new file mode 100644 index 000000000..5a439cad2 --- /dev/null +++ b/bintray.json @@ -0,0 +1,25 @@ +{ + "package": { + "name": "unstable", + "repo": "jadx", + "subject": "skylot", + "desc": "Unstable", + "website_url": "https://github.com/skylot/jadx", + "issue_tracker_url": "https://github.com/skylot/jadx", + "vcs_url": "https://github.com/skylot/jadx", + "licenses": ["Apache-2.0"], + "labels": ["unstable"], + "public_download_numbers": false, + "public_stats": false + }, + + "version": { + "name": "BUILD_VERSION" + }, + + "files": + [ + {"includePattern": "build/(jadx.*\.zip)", "uploadPattern": "$1"} + ], + "publish": true +}