Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Horis ci #41

Merged
merged 17 commits into from
Oct 16, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add bintray plugin
  • Loading branch information
IRyabov-HORIS committed Oct 11, 2019
commit 55b488c5dfbaeaf6f0c041393329d8535ad8f1e7
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ plugins {
id 'org.jetbrains.gradle.plugin.idea-ext' version '0.5' apply false
// executing node scripts (adds support for Yarn. Also - NPM, Grunt and Gulp)
id 'com.moowork.node' version '1.3.1' apply false
// publishing to bintray
id "com.jfrog.bintray" version "1.8.4"
}


Expand Down Expand Up @@ -62,3 +64,10 @@ subprojects {
}
}
}

if (hasProperty('bintray_user') && hasProperty('bintray_key')) {
bintray {
user = bintray_user
key = bintray_key
}
}
12 changes: 11 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,14 @@ python_bin_path=/usr/bin

# PyPI credentials for publishing
pypi_username=
pypi_password=
pypi_password=



# -------------------------------------------------------------------
# Bintray settings
# -------------------------------------------------------------------

# Bintray credentials
bintray_user=
bintray_key=
6 changes: 3 additions & 3 deletions python-package/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ plugins {
def PYTHON_BIN_PATH_PROPERTY = "python_bin_path"
def PYTHON_REPOSITORY_URL_PROPERTY = "python_repository_url"

if (project.properties['python_include_path'] != null) {
if (project.properties[PYTHON_BIN_PATH_PROPERTY] != null) {
if (hasProperty('python_include_path')) {
if (hasProperty(PYTHON_BIN_PATH_PROPERTY)) {


task updateJs(type:Exec) {
Expand Down Expand Up @@ -37,7 +37,7 @@ if (project.properties['python_include_path'] != null) {
task publishPythonPackage(type:Exec) {
workingDir "${project.buildDir}/dist"

if (project.properties[PYTHON_REPOSITORY_URL_PROPERTY] != null) {
if (hasProperty(PYTHON_REPOSITORY_URL_PROPERTY)) {
commandLine "${project.properties[PYTHON_BIN_PATH_PROPERTY]}/twine",
"upload",
"--repository-url",
Expand Down