Skip to content

Commit 49304b0

Browse files
committed
bazel,travis: add bazel build checking
1 parent 86d6412 commit 49304b0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@ sudo: false
22

33
language: java
44

5+
addons:
6+
apt:
7+
packages:
8+
- wget
9+
510
env:
611
global:
12+
- BAZEL_VERSION=0.9.0
713
- GRADLE_OPTS=-Xmx512m
814
- PROTOBUF_VERSION=3.5.1
915
- LDFLAGS=-L/tmp/protobuf/lib
@@ -23,6 +29,9 @@ before_install:
2329
- echo "checkstyle.ignoreFailures=false" >> $HOME/.gradle/gradle.properties
2430
- echo "failOnWarnings=true" >> $HOME/.gradle/gradle.properties
2531
- echo "errorProne=true" >> $HOME/.gradle/gradle.properties
32+
- mkdir -p /tmp/bazel
33+
- wget -nc "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel_${BAZEL_VERSION}-linux-x86_64.deb" -P /tmp/bazel
34+
- sudo dpkg -i "/tmp/bazel/bazel_${BAZEL_VERSION}-linux-x86_64.deb"
2635

2736
install:
2837
- ./gradlew assemble generateTestProto install
@@ -34,6 +43,7 @@ before_script:
3443

3544
script:
3645
- ./gradlew check :grpc-all:jacocoTestReport
46+
- bazel build //compiler:all //context:all //core:all //netty:all //okhttp:all //protobuf:all //protobuf-lite:all //protobuf-nano:all //stub:all //testing:all
3747

3848
after_success:
3949
- if \[ "$TRAVIS_OS_NAME" = linux \]; then ./gradlew :grpc-all:coveralls; fi
@@ -47,6 +57,7 @@ notifications:
4757

4858
cache:
4959
directories:
60+
- /tmp/bazel
5061
- /tmp/protobuf-${PROTOBUF_VERSION}
5162
- /tmp/gradle-caches-modules-2
5263
- /tmp/gradle-wrapper

0 commit comments

Comments
 (0)