Skip to content

Commit 52f9610

Browse files
committed
adding travis and gradle wrapper
1 parent f99a06f commit 52f9610

8 files changed

Lines changed: 336 additions & 0 deletions

File tree

.travis.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
language: java
2+
jdk:
3+
- oraclejdk8
4+
5+
# force upgrade Java8 as per https://github.com/travis-ci/travis-ci/issues/4042 (fixes compilation issue)
6+
addons:
7+
apt:
8+
packages:
9+
- oracle-java8-installer
10+
11+
sudo: false
12+
# as per http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/
13+
14+
# script for build and release via Travis to Bintray
15+
script: gradle/buildViaTravis.sh
16+
17+
# cache between builds
18+
cache:
19+
directories:
20+
- $HOME/.m2
21+
- $HOME/.gradle
22+
23+
env:
24+
global:
25+
- secure: cXHzd2WHqmdmJEyEKlELt8Rp9qCvhTRXTEHpQz0sKt55KorI8vO33sSOBs8uBqknWgGgOzHsB7cw0dJRxCmW+BRy90ELtdg/dVLzU8D8BrI6/DHzd/Bhyt9wx2eVdLmDV7lQ113AqJ7lphbH+U8ceTBlbNYDPKcIjFhsPO0WcPxQYed45na8XRK0UcAOpVmmNlTE6fHy5acQblNO84SN6uevCFqWAZJY7rc6xGrzFzca+ul5kR8xIzdE5jKs2Iw0MDeWi8cshkhj9c0FDtfsNIB1F+NafDtEdqjt6kMqYAUUiTAM2QdNoffzgmWEbVOj3uvthlm+S11XaU3Cn2uC7CiZTn2ebuoqCuV5Ge6KQI0ysEQVUfLhIF7iJG6dJvoyYy8ta8LEcjcsYAdF34BVddoUJkp+eJuhlto2aTZsDdXpmnwRM1PPDRoyrLjRcKiWYPR2tO2RG9sb0nRAGEpHTDd5ju2Ta4zpvgpWGUiKprs5R+YY7TEg16VSTYMmCJj5C9ap2lYIH4EoxsQpuxYig9AV1sOUJujLSa4TXqlcOmSM0IkHJ/i0VE8TZg4nV4XowyH6nKZ63InF4pUDcG13BpJQyTFKbK2D0lFn8MzpWvIV2oOUxNkOaOBg9cGhAnv9Sfw/Iv1UVaUgCNQd2M0R0rwfJoPCg2mmWVxsvh3cW4M=
26+
- secure: UKZHoS/uw6SuAI9n0lCHWEc74H9+STpdvMmLd+nANjWkMFfo0bOUbm1SsV6PU6d2r8C5k4dEsW90J4diunR856R8vO+DpJPwUNJDuLm2Kiv7zhLJrXqpRTw3E3ijdFA84xocTN1CxZakW+ZP2wnb83jI3p99rgotc0i1wz9n1onaZrhZK5c3Rod2cdRig0wkeKK9NhwupXbXkpPtRNFRCOPgKvjPiEeW5YRZ/YxOs+OL9Sy6764b46EiWP/DFPGOTkJwz2mxLRT8sBx6rjeyf6v41NQPW1rlNwIDKcpnQl1n49k5SgARZvhFlakRdLyzljj1L0/VLk7xNDEQx3LYxl2mSl7AQlA8RYkxqirMRnIHHXrA7hhPuCYxp2nlpciwuh69vAOfliL3JeAsEgj0PKiQp7HQyBPQOvfmiGH2oIo+dkXvQwmLZTDnj9vNzZIS+rADbZoLzKftZKAUIWCze5zQ6mCkwKiuVYYWl2aPoy2XxRkA51t6sEHA0/iYrqaOX76WHGH0JhoAGWEIBNNP/rRnO38Rm96pm6SHrzLa1VxVFT6dRGljFTxvCsgsCfx/rRL+a1E0j89nLAmOGkDpyhUaKWqVQJWk3H1AeQ3cWGXfvUhDyaSTxcKs6AuQ2E5TtNgkbx0Xjq8NDjuiP57WDFYMXGvIqkgSzKG3A0DSMHI=

build.gradle

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
buildscript {
2+
repositories {
3+
jcenter()
4+
}
5+
6+
dependencies { classpath 'io.reactivesocket:gradle-nebula-plugin-reactivesocket:1.0.0' }
7+
}
8+
9+
description = 'ReactiveSocket: stream oriented messaging passing with Reactive Stream semantics.'
10+
11+
apply plugin: 'reactivesocket-project'
12+
apply plugin: 'java'
13+
14+
dependencies {
15+
compile 'io.reactivex:rxjava:1.0.13'
16+
compile 'io.reactivex:rxjava-reactive-streams:1.0.1'
17+
compile 'org.reactivestreams:reactive-streams:1.0.0.final'
18+
compile 'uk.co.real-logic:Agrona:0.4.2'
19+
testCompile 'junit:junit-dep:4.10'
20+
testCompile 'org.mockito:mockito-core:1.8.5'
21+
}
22+
23+
24+
// support for snapshot/final releases via versioned branch names like 1.x
25+
nebulaRelease {
26+
addReleaseBranchPattern(/\d+\.\d+\.\d+/)
27+
addReleaseBranchPattern('HEAD')
28+
}
29+
30+
if (project.hasProperty('release.useLastTag')) {
31+
tasks.prepare.enabled = false
32+
}

buildViaTravis.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
# This script will build the project.
3+
4+
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
5+
echo -e "Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]"
6+
./gradlew -Prelease.useLastTag=true build
7+
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then
8+
echo -e 'Build Branch with Snapshot => Branch ['$TRAVIS_BRANCH']'
9+
./gradlew -Prelease.travisci=true -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" build snapshot --stacktrace
10+
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ]; then
11+
echo -e 'Build Branch for Release => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
12+
./gradlew -Prelease.travisci=true -Prelease.useLastTag=true -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" final --stacktrace
13+
else
14+
echo -e 'WARN: Should not be here => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG'] Pull Request ['$TRAVIS_PULL_REQUEST']'
15+
./gradlew -Prelease.useLastTag=true build
16+
fi

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
release.scope=patch

gradlew

Lines changed: 164 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 90 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rootProject.name='reactivesocket'

wrapper/gradle-wrapper.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Thu Jul 23 15:18:42 PDT 2015
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip

0 commit comments

Comments
 (0)