Skip to content

Commit 3495300

Browse files
committed
Add travis stages
1 parent 5f17e2c commit 3495300

File tree

4 files changed

+13
-23
lines changed

4 files changed

+13
-23
lines changed

.travis.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
sudo: required
2-
matrix:
2+
jobs:
33
include:
4-
- os: linux
4+
- stage: build
5+
os: linux
56
jdk: oraclejdk8
67
language: generic
78
before_install:
@@ -10,7 +11,8 @@ matrix:
1011
- pushd protobuf-3.6.1 && ./configure --disable-shared && make && sudo make install
1112
&& popd
1213
script: "./ci/travis.sh"
13-
- os: osx
14+
- stage: deploy
15+
os: osx
1416
osx_image: xcode9.4
1517
language: generic
1618
env:

bintray.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ if (project.hasProperty('bintrayUser') && project.hasProperty('bintrayKey') &&
5050
mavenCentralSync {
5151
user = project.property('sonatypeUsername')
5252
password = project.property('sonatypePassword')
53+
close = project.property('stage') == 'Deploy' ? '1' : '0'
5354
}
5455
}
5556
}

ci/travis.sh

+6-19
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,12 @@ elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ] && [ "$bin
1515

1616
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ] && [ "$bintrayUser" != "" ] ; then
1717

18-
if [ "$TRAVIS_OS_NAME" != "linux" ]; then
19-
20-
echo -e "Building Tag $TRAVIS_REPO_SLUG/$TRAVIS_TAG"
21-
./gradlew \
22-
-Pversion="$TRAVIS_TAG" \
23-
-PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" \
24-
-PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" \
25-
build bintrayUpload --stacktrace
26-
27-
else
28-
29-
echo -e "Building Tag $TRAVIS_REPO_SLUG/$TRAVIS_TAG"
30-
./gradlew \
31-
-Pversion="$TRAVIS_TAG" \
32-
-PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" \
33-
-PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" \
34-
:rsocket-rpc-protobuf:build :rsocket-rpc-protobuf:bintrayUpload --stacktrace
35-
36-
fi
18+
echo -e "Building Tag $TRAVIS_REPO_SLUG/$TRAVIS_TAG"
19+
./gradlew \
20+
-Pversion="$TRAVIS_TAG" -Pstage="$TRAVIS_BUILD_STAGE_NAME" \
21+
-PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" \
22+
-PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" \
23+
build bintrayUpload --stacktrace
3724

3825
else
3926

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
group=io.rsocket.rpc
2-
version=0.2.8
2+
version=0.2.9

0 commit comments

Comments
 (0)