File: .travis.yml

package info (click to toggle)
grpc-java 1.26.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 11,852 kB
  • sloc: java: 146,813; cpp: 1,174; xml: 1,037; sh: 662; makefile: 40; python: 40
file content (62 lines) | stat: -rw-r--r-- 2,030 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
language: java

env:
  global:
    - GRADLE_OPTS=-Xmx512m
    - LDFLAGS=-L/tmp/protobuf/lib
    - CXXFLAGS=-I/tmp/protobuf/include
    - LD_LIBRARY_PATH=/tmp/protobuf/lib

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

install:
  - ./gradlew assemble syncGeneratedSources publishToMavenLocal
  - pushd examples && ./gradlew build && popd
  - pushd examples && mvn verify && popd
  - pushd examples/example-alts && ../gradlew build && popd
  - pushd examples/example-tls && ../gradlew clean build && popd
  - 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

after_success:
    # 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)

os:
  - linux

dist: xenial

jdk:
  - openjdk8
  - openjdk11

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