Louis Ryan | c42c8c4 | 2015-03-18 16:31:38 -0700 | [diff] [blame] | 1 | sudo: false |
| 2 | |
Louis Ryan | 540b4d3 | 2015-09-04 13:26:24 -0700 | [diff] [blame] | 3 | language: java |
Louis Ryan | c42c8c4 | 2015-03-18 16:31:38 -0700 | [diff] [blame] | 4 | |
| 5 | env: |
| 6 | global: |
Kun Zhang | bd23a8d | 2015-08-28 18:47:06 -0700 | [diff] [blame] | 7 | - PROTOBUF_VERSION=3.0.0-beta-1 |
Eric Anderson | a99e977 | 2015-10-01 11:38:49 -0700 | [diff] [blame] | 8 | - OPENSSL_VERSION=1.0.2d |
Kun Zhang | bd23a8d | 2015-08-28 18:47:06 -0700 | [diff] [blame] | 9 | - LDFLAGS=-L/tmp/protobuf-${PROTOBUF_VERSION}/lib |
| 10 | - CXXFLAGS=-I/tmp/protobuf-${PROTOBUF_VERSION}/include |
Eric Anderson | a99e977 | 2015-10-01 11:38:49 -0700 | [diff] [blame] | 11 | - LD_LIBRARY_PATH=/tmp/protobuf-${PROTOBUF_VERSION}/lib:/tmp/openssl-${OPENSSL_VERSION}/lib |
Louis Ryan | c42c8c4 | 2015-03-18 16:31:38 -0700 | [diff] [blame] | 12 | |
Eric Anderson | a0acb9b | 2015-03-20 10:26:00 -0700 | [diff] [blame] | 13 | before_install: |
Eric Anderson | 6dc5e80 | 2015-10-15 14:52:24 -0700 | [diff] [blame] | 14 | # 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 Zhang | bd23a8d | 2015-08-28 18:47:06 -0700 | [diff] [blame] | 17 | - buildscripts/make_dependencies.sh # build protoc into /tmp/protobuf-${PROTOBUF_VERSION} |
Eric Anderson | 26141b4 | 2015-03-21 10:59:17 -0700 | [diff] [blame] | 18 | - mkdir -p $HOME/.gradle |
| 19 | - echo "checkstyle.ignoreFailures=false" >> $HOME/.gradle/gradle.properties |
Louis Ryan | c42c8c4 | 2015-03-18 16:31:38 -0700 | [diff] [blame] | 20 | |
Eric Anderson | 3457199 | 2015-05-07 17:00:44 -0700 | [diff] [blame] | 21 | before_script: |
| 22 | - test -z "$(git status --porcelain)" || (git status && echo Error Working directory is not clean. Forget to commit generated files? && false) |
| 23 | |
Eric Anderson | 522580d | 2015-08-07 18:02:31 -0700 | [diff] [blame] | 24 | after_success: |
Eric Anderson | 6dc5e80 | 2015-10-15 14:52:24 -0700 | [diff] [blame] | 25 | - if \[ "$TRAVIS_OS_NAME" = linux \]; then ./gradlew :grpc-all:coveralls; fi |
Louis Ryan | c42c8c4 | 2015-03-18 16:31:38 -0700 | [diff] [blame] | 26 | |
| 27 | os: |
| 28 | - linux |
Eric Anderson | 6dc5e80 | 2015-10-15 14:52:24 -0700 | [diff] [blame] | 29 | - osx |
| 30 | |
| 31 | # This image comes with jdk8 |
| 32 | osx_image: xcode7 |
Louis Ryan | c42c8c4 | 2015-03-18 16:31:38 -0700 | [diff] [blame] | 33 | |
Louis Ryan | c42c8c4 | 2015-03-18 16:31:38 -0700 | [diff] [blame] | 34 | notifications: |
Eric Anderson | a0acb9b | 2015-03-20 10:26:00 -0700 | [diff] [blame] | 35 | email: false |
| 36 | |
Eric Anderson | 6dc5e80 | 2015-10-15 14:52:24 -0700 | [diff] [blame] | 37 | # Caching does not work for public repositories with OS X: |
| 38 | # https://github.com/travis-ci/travis-ci/issues/4011 |
Eric Anderson | a0acb9b | 2015-03-20 10:26:00 -0700 | [diff] [blame] | 39 | cache: |
| 40 | directories: |
Kun Zhang | bd23a8d | 2015-08-28 18:47:06 -0700 | [diff] [blame] | 41 | - /tmp/protobuf-${PROTOBUF_VERSION} |
Eric Anderson | a99e977 | 2015-10-01 11:38:49 -0700 | [diff] [blame] | 42 | - /tmp/openssl-${OPENSSL_VERSION} |
Eric Anderson | 1605578 | 2015-03-20 12:03:48 -0700 | [diff] [blame] | 43 | - $HOME/.m2/repository/io/netty |
| 44 | - $HOME/.gradle/caches/modules-2 |
| 45 | - $HOME/.gradle/wrapper |
| 46 | |
| 47 | before_cache: |
| 48 | - rm $HOME/.gradle/caches/modules-2/modules-2.lock |
Eric Anderson | 3b54ffa | 2015-04-29 07:56:04 -0700 | [diff] [blame] | 49 | - find $HOME/.gradle/wrapper -not -name "*-all.zip" -and -not -name "*-bin.zip" -delete |