File tree Expand file tree Collapse file tree 4 files changed +13
-23
lines changed Expand file tree Collapse file tree 4 files changed +13
-23
lines changed Original file line number Diff line number Diff line change 11sudo : 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 :
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -15,25 +15,12 @@ elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ] && [ "$bin
1515
1616elif [ " $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
3825else
3926
Original file line number Diff line number Diff line change 11group =io.rsocket.rpc
2- version =0.2.8
2+ version =0.2.9
You can’t perform that action at this time.
0 commit comments