Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ env:
- LD_LIBRARY_PATH=/tmp/protobuf-${PROTOBUF_VERSION}/lib:/tmp/openssl-${OPENSSL_VERSION}/lib

before_install:
- buildscripts/make_dependencies.sh # build protoc into /tmp/protobuf-${PROTOBUF_VERSION}
# Work around https://github.com/travis-ci/travis-ci/issues/2317
- if \[ "$TRAVIS_OS_NAME" = linux \]; then jdk_switcher use oraclejdk8; fi
- if \[ "$TRAVIS_OS_NAME" = osx \]; then brew update; fi
# build protoc into /tmp/protobuf-${PROTOBUF_VERSION}
- buildscripts/make_dependencies.sh
- mkdir -p $HOME/.gradle
- echo "checkstyle.ignoreFailures=false" >> $HOME/.gradle/gradle.properties

Expand All @@ -21,11 +25,12 @@ before_script:
after_success:
- ./gradlew :grpc-all:coveralls

jdk:
- oraclejdk8

os:
- linux
- osx

# This image comes with jdk8
osx_image: xcode7

notifications:
email: false
Expand Down
2 changes: 2 additions & 0 deletions buildscripts/make_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ INSTALL_DIR=/tmp/openssl-${OPENSSL_VERSION}

if [ -f ${INSTALL_DIR}/lib/libssl.so ]; then
echo "Not building openssl. Already built"
elif [ "$(uname)" = Darwin ]; then
brew install openssl
else
wget -O - https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz | tar xz -C $DOWNLOAD_DIR
pushd $DOWNLOAD_DIR/openssl-${OPENSSL_VERSION}
Expand Down