blob: 25be15394c728edddfd02c8ffe4c7a8db0962f6c [file] [log] [blame]
Louis Ryanc42c8c42015-03-18 16:31:38 -07001sudo: false
2
Louis Ryan540b4d32015-09-04 13:26:24 -07003language: java
Louis Ryanc42c8c42015-03-18 16:31:38 -07004
5env:
6 global:
Kun Zhangbd23a8d2015-08-28 18:47:06 -07007 - PROTOBUF_VERSION=3.0.0-beta-1
Eric Andersona99e9772015-10-01 11:38:49 -07008 - OPENSSL_VERSION=1.0.2d
Kun Zhangbd23a8d2015-08-28 18:47:06 -07009 - LDFLAGS=-L/tmp/protobuf-${PROTOBUF_VERSION}/lib
10 - CXXFLAGS=-I/tmp/protobuf-${PROTOBUF_VERSION}/include
Eric Andersona99e9772015-10-01 11:38:49 -070011 - LD_LIBRARY_PATH=/tmp/protobuf-${PROTOBUF_VERSION}/lib:/tmp/openssl-${OPENSSL_VERSION}/lib
Louis Ryanc42c8c42015-03-18 16:31:38 -070012
Eric Andersona0acb9b2015-03-20 10:26:00 -070013before_install:
Eric Anderson6dc5e802015-10-15 14:52:24 -070014 # Work around https://github.com/travis-ci/travis-ci/issues/2317
15 - if \[ "$TRAVIS_OS_NAME" = linux \]; then jdk_switcher use oraclejdk8; fi
16 - if \[ "$TRAVIS_OS_NAME" = osx \]; then brew update; fi
Kun Zhangbd23a8d2015-08-28 18:47:06 -070017 - buildscripts/make_dependencies.sh # build protoc into /tmp/protobuf-${PROTOBUF_VERSION}
Eric Anderson26141b42015-03-21 10:59:17 -070018 - mkdir -p $HOME/.gradle
19 - echo "checkstyle.ignoreFailures=false" >> $HOME/.gradle/gradle.properties
Louis Ryanc42c8c42015-03-18 16:31:38 -070020
Eric Anderson34571992015-05-07 17:00:44 -070021before_script:
22 - test -z "$(git status --porcelain)" || (git status && echo Error Working directory is not clean. Forget to commit generated files? && false)
23
Eric Anderson522580d2015-08-07 18:02:31 -070024after_success:
Eric Anderson6dc5e802015-10-15 14:52:24 -070025 - if \[ "$TRAVIS_OS_NAME" = linux \]; then ./gradlew :grpc-all:coveralls; fi
Louis Ryanc42c8c42015-03-18 16:31:38 -070026
27os:
28 - linux
Eric Anderson6dc5e802015-10-15 14:52:24 -070029 - osx
30
31# This image comes with jdk8
32osx_image: xcode7
Louis Ryanc42c8c42015-03-18 16:31:38 -070033
Louis Ryanc42c8c42015-03-18 16:31:38 -070034notifications:
Eric Andersona0acb9b2015-03-20 10:26:00 -070035 email: false
36
Eric Anderson6dc5e802015-10-15 14:52:24 -070037# Caching does not work for public repositories with OS X:
38# https://github.com/travis-ci/travis-ci/issues/4011
Eric Andersona0acb9b2015-03-20 10:26:00 -070039cache:
40 directories:
Kun Zhangbd23a8d2015-08-28 18:47:06 -070041 - /tmp/protobuf-${PROTOBUF_VERSION}
Eric Andersona99e9772015-10-01 11:38:49 -070042 - /tmp/openssl-${OPENSSL_VERSION}
Eric Anderson16055782015-03-20 12:03:48 -070043 - $HOME/.m2/repository/io/netty
44 - $HOME/.gradle/caches/modules-2
45 - $HOME/.gradle/wrapper
46
47before_cache:
48 - rm $HOME/.gradle/caches/modules-2/modules-2.lock
Eric Anderson3b54ffa2015-04-29 07:56:04 -070049 - find $HOME/.gradle/wrapper -not -name "*-all.zip" -and -not -name "*-bin.zip" -delete