aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorEric Anderson <ejona@google.com>2015-10-15 14:52:24 -0700
committerEric Anderson <ejona@google.com>2015-10-23 09:27:07 -0700
commit6dc5e8075bf9391f7ec960677a8a695ed1a5e7d3 (patch)
tree7d216eb03380a2459c9c7e3225938f91dd62ebf6 /.travis.yml
parent17597ce9cfa0bdcf5c16c1069eb3927ec01e2057 (diff)
downloadgrpc-grpc-java-6dc5e8075bf9391f7ec960677a8a695ed1a5e7d3.tar.gz
Support OS X on Travis
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml14
1 files changed, 10 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index b8b2d34a2..25be15394 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -11,6 +11,9 @@ env:
- LD_LIBRARY_PATH=/tmp/protobuf-${PROTOBUF_VERSION}/lib:/tmp/openssl-${OPENSSL_VERSION}/lib
before_install:
+ # 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
- buildscripts/make_dependencies.sh # build protoc into /tmp/protobuf-${PROTOBUF_VERSION}
- mkdir -p $HOME/.gradle
- echo "checkstyle.ignoreFailures=false" >> $HOME/.gradle/gradle.properties
@@ -19,17 +22,20 @@ before_script:
- test -z "$(git status --porcelain)" || (git status && echo Error Working directory is not clean. Forget to commit generated files? && false)
after_success:
- - ./gradlew :grpc-all:coveralls
-
-jdk:
- - oraclejdk8
+ - if \[ "$TRAVIS_OS_NAME" = linux \]; then ./gradlew :grpc-all:coveralls; fi
os:
- linux
+ - osx
+
+# This image comes with jdk8
+osx_image: xcode7
notifications:
email: false
+# Caching does not work for public repositories with OS X:
+# https://github.com/travis-ci/travis-ci/issues/4011
cache:
directories:
- /tmp/protobuf-${PROTOBUF_VERSION}