blob: f501c2257204f4b4c1dbd42ad8327b61400f6635 [file] [log] [blame]
Louis Ryanc42c8c42015-03-18 16:31:38 -07001sudo: false
2
Louis Ryand6dc7902015-08-31 09:45:03 -07003language: android
4
5android:
6 components:
7 - build-tools-21.1.1 # preinstalled in travis env
8 - android-21
9
10script: ./gradlew build
Louis Ryanc42c8c42015-03-18 16:31:38 -070011
12env:
13 global:
Kun Zhangbd23a8d2015-08-28 18:47:06 -070014 - PROTOBUF_VERSION=3.0.0-beta-1
15 - LDFLAGS=-L/tmp/protobuf-${PROTOBUF_VERSION}/lib
16 - CXXFLAGS=-I/tmp/protobuf-${PROTOBUF_VERSION}/include
17 - LD_LIBRARY_PATH=/tmp/protobuf-${PROTOBUF_VERSION}/lib
Louis Ryanc42c8c42015-03-18 16:31:38 -070018
Eric Andersona0acb9b2015-03-20 10:26:00 -070019before_install:
Kun Zhangbd23a8d2015-08-28 18:47:06 -070020 - buildscripts/make_dependencies.sh # build protoc into /tmp/protobuf-${PROTOBUF_VERSION}
Eric Anderson26141b42015-03-21 10:59:17 -070021 - mkdir -p $HOME/.gradle
22 - echo "checkstyle.ignoreFailures=false" >> $HOME/.gradle/gradle.properties
Louis Ryanc42c8c42015-03-18 16:31:38 -070023
Eric Anderson34571992015-05-07 17:00:44 -070024before_script:
25 - test -z "$(git status --porcelain)" || (git status && echo Error Working directory is not clean. Forget to commit generated files? && false)
26
Eric Anderson522580d2015-08-07 18:02:31 -070027after_success:
28 - ./gradlew :grpc-all:coveralls
29
Louis Ryanc42c8c42015-03-18 16:31:38 -070030jdk:
31 - oraclejdk8
32
33os:
34 - linux
35
Louis Ryanc42c8c42015-03-18 16:31:38 -070036notifications:
Eric Andersona0acb9b2015-03-20 10:26:00 -070037 email: false
38
39cache:
40 directories:
Kun Zhangbd23a8d2015-08-28 18:47:06 -070041 - /tmp/protobuf-${PROTOBUF_VERSION}
Eric Anderson16055782015-03-20 12:03:48 -070042 - $HOME/.m2/repository/io/netty
43 - $HOME/.gradle/caches/modules-2
44 - $HOME/.gradle/wrapper
45
46before_cache:
47 - rm $HOME/.gradle/caches/modules-2/modules-2.lock
Eric Anderson3b54ffa2015-04-29 07:56:04 -070048 - find $HOME/.gradle/wrapper -not -name "*-all.zip" -and -not -name "*-bin.zip" -delete