Skip to content

Commit dcd1643

Browse files
committed
Added travis file
1 parent 1c24e00 commit dcd1643

File tree

2 files changed

+33
-4
lines changed

2 files changed

+33
-4
lines changed

.travis.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
sudo: required
2+
matrix:
3+
include:
4+
- os: linux
5+
jdk: oraclejdk8
6+
language: generic
7+
before_install:
8+
- wget https://github.com/google/protobuf/releases/download/v3.6.0/protobuf-cpp-3.6.0.tar.gz
9+
- tar -xzvf protobuf-cpp-3.6.0.tar.gz
10+
- pushd protobuf-3.6.0 && ./configure --disable-shared && make && sudo make install
11+
&& popd
12+
script: buildtravis.sh
13+
- os: osx
14+
osx_image: xcode9.4
15+
language: generic
16+
env:
17+
- HOMEBREW_TEMP="/tmp"
18+
- LDFLAGS="/usr/local/lib/libprotobuf.a /usr/local/lib/libprotoc.a"
19+
before_install:
20+
- brew update
21+
- EDITOR="sed -i '' 's/system \".\/configure\",/system \".\/configure\", \"--disable-shared\",/g'"
22+
brew edit protobuf
23+
- brew install protobuf
24+
script: buildtravis.sh
25+
before_cache:
26+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
27+
notifications:
28+
email: false
29+
cache:
30+
directories:
31+
- "$HOME/.gradle/caches/"
32+
- "$HOME/.gradle/wrapper/"
33+
- "$HOME/.m2"

buildtravis.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,14 @@ echo -e "TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST"
88

99
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
1010
echo -e "Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]"
11-
cd rsocket-rpc-java
1211
./gradlew clean build
1312
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then
1413
echo -e 'Build Branch with Snapshot => Branch ['$TRAVIS_BRANCH']'
15-
cd rsocket-rpc-java
1614
./gradlew clean build
1715
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ]; then
1816
echo -e 'Build Branch for Release => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
19-
cd rsocket-rpc-java
2017
./gradlew -PreleaseType=release -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" clean build bintrayUpload --stacktrace
2118
else
2219
echo -e 'WARN: Should not be here => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG'] Pull Request ['$TRAVIS_PULL_REQUEST']'
23-
cd rsocket-rpc-java
2420
./gradlew clean build
2521
fi

0 commit comments

Comments
 (0)