Skip to content

Commit

Permalink
Integrate shipkit for CI/CD (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
wmoustafa authored Jan 16, 2019
2 parents bf9e845 + 302554f commit 08d8b53
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 10 deletions.
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# More details on how to configure the Travis build
# https://docs.travis-ci.com/user/customizing-the-build/

language: java

jdk:
- oraclejdk8

#Skipping install step to avoid having Travis run arbitrary './gradlew assemble' task
# https://docs.travis-ci.com/user/customizing-the-build/#Skipping-the-Installation-Step
install:
- true

#Don't build tags
branches:
except:
- /^v\d/

#Build and perform release (if needed)
script:
- ./gradlew build -s
# Print output every minute to avoid travis timeout
- while sleep 1m; do echo "=====[ $SECONDS seconds elapsed -- still running ]====="; done &
- ./gradlew ciPerformRelease -s
# Killing background sleep loop
- kill %1
12 changes: 9 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
// Licensed under the BSD-2 Clause license.
// See LICENSE in the project root for license information.

allprojects {
apply plugin: 'idea'
}

buildscript {
repositories {
Expand All @@ -20,6 +17,15 @@ buildscript {
}
}

plugins {
id "org.shipkit.java" version "2.0.31"
}

allprojects {
group = 'com.linkedin.transport'
apply plugin: 'idea'
}

if (project.hasProperty('overrideBuildEnvironment')) {
//The property is automatically passed to the Gradle build when the project is built at LinkedIn
//The property contains the file path to a script plugin that 'adapts' this OS project to LinkedIn
Expand Down
5 changes: 0 additions & 5 deletions gradle.properties

This file was deleted.

34 changes: 34 additions & 0 deletions gradle/shipkit.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
shipkit {
gitHub.repository = "linkedin/transport"

gitHub.readOnlyAuthToken = "361a43a2b351e61e2243c5ea15792f33a3c9b467"

// The GitHub write token is required for committing release notes and bumping up project version
// Ensure that the release machine or Travis CI has this env variable exported
gitHub.writeAuthToken = System.getenv("GH_WRITE_TOKEN")

git.releasableBranchRegex = "master|release/.+"
}

allprojects {
plugins.withId("org.shipkit.bintray") {

//Bintray configuration is handled by JFrog Bintray Gradle Plugin
//For reference see the official documentation: https://github.com/bintray/gradle-bintray-plugin
bintray {

// The Bintray API token is required to publish artifacts to Bintray
// Ensure that the release machine or Travis CI has this env variable exported
key = System.getenv("BINTRAY_API_KEY")

pkg {
repo = 'maven'
user = 'smahadik'
userOrg = 'linkedin-transport'
name = 'transport'
licenses = ['BSD 2-Clause']
labels = ['transport', 'UDF', 'user defined functions', 'portable']
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ apply plugin: 'java'
dependencies {
compile project(":transportable-udfs-api")
compile project(":transportable-udfs-test:transportable-udfs-test-spi")
compile project(path: ':transportable-udfs-type-system', configuration: 'tests')
compile ('com.google.guava:guava:24.1-jre')
compile ('org.testng:testng:6.11')
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ apply plugin: 'java'
dependencies {
compile project(":transportable-udfs-api")
compile project(":transportable-udfs-type-system")
compile project(path: ':transportable-udfs-type-system', configuration: 'tests')
}
3 changes: 3 additions & 0 deletions version.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#Version of the produced binaries. This file is intended to be checked-in.
#It will be automatically bumped by release automation.
version=0.0.36

0 comments on commit 08d8b53

Please sign in to comment.