grpc-java/.travis.yml

63 lines
2.0 KiB
YAML
Raw Normal View History

language: java
2015-03-19 07:31:38 +08:00
env:
global:
- GRADLE_OPTS=-Xmx512m
- LDFLAGS=-L/tmp/protobuf/lib
- CXXFLAGS=-I/tmp/protobuf/include
- LD_LIBRARY_PATH=/tmp/protobuf/lib
2015-03-19 07:31:38 +08:00
before_install:
- rm ~/.m2/settings.xml || true # Avoid repository.apache.org, which has QPS limits and is useless
- mkdir -p $HOME/.gradle/caches &&
ln -s /tmp/gradle-caches-modules-2 $HOME/.gradle/caches/modules-2
- mkdir -p $HOME/.gradle &&
ln -s /tmp/gradle-wrapper $HOME/.gradle/wrapper
- buildscripts/make_dependencies.sh # build protoc into /tmp/protobuf
- mkdir -p $HOME/.gradle
- echo "checkstyle.ignoreFailures=false" >> $HOME/.gradle/gradle.properties
- echo "failOnWarnings=true" >> $HOME/.gradle/gradle.properties
- echo "errorProne=true" >> $HOME/.gradle/gradle.properties
2015-03-19 07:31:38 +08:00
install:
- ./gradlew assemble syncGeneratedSources publishToMavenLocal
- pushd examples && ./gradlew build && popd
- pushd examples && mvn verify && popd
2018-12-12 08:23:28 +08:00
- pushd examples/example-alts && ../gradlew build && popd
- pushd examples/example-tls && ../gradlew clean build && popd
2018-12-12 08:23:28 +08:00
- pushd examples/example-kotlin && ../gradlew build && popd
before_script:
- test -z "$(git status --porcelain)" || (git status && echo Error Working directory is not clean. Forget to commit generated files? && false)
script:
- ./gradlew check :grpc-all:jacocoTestReport
2015-08-08 09:02:31 +08:00
after_success:
2018-03-29 08:13:39 +08:00
# Upload to coveralls once, instead of for each job in the matrix
- if [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then ./gradlew :grpc-all:coveralls; fi
- bash <(curl -s https://codecov.io/bash)
2015-03-19 07:31:38 +08:00
os:
- linux
2015-10-16 05:52:24 +08:00
dist: trusty
2018-03-29 08:13:39 +08:00
jdk:
- oraclejdk8
- openjdk11
2018-03-29 08:13:39 +08:00
2015-03-19 07:31:38 +08:00
notifications:
email: false
cache:
directories:
- /tmp/protobuf-cache
- /tmp/gradle-caches-modules-2
- /tmp/gradle-wrapper
before_cache:
# The lock changes based on folder name; normally $HOME/.gradle/caches/modules-2/modules-2.lock
- rm /tmp/gradle-caches-modules-2/gradle-caches-modules-2.lock
- find $HOME/.gradle/wrapper -not -name "*-all.zip" -and -not -name "*-bin.zip" -delete