@@ -6,10 +6,34 @@ addons:
6
6
hosts :
7
7
- fake-hostname-to-work-around-travis-bug
8
8
hostname : fake-hostname-to-work-around-travis-bug
9
- jdk :
10
- - openjdk8
11
- - openjdk7
12
- install : ./gradlew assemble
13
- script : ./gradlew build install
14
- after_success :
15
- - bash <(curl -s https://codecov.io/bash)
9
+
10
+ jobs :
11
+ include :
12
+ - name : Java 7 Gradle Build
13
+ jdk : openjdk7
14
+ install : ./gradlew assemble
15
+ script : ./gradlew build install
16
+ after_success :
17
+ - bash <(curl -s https://codecov.io/bash)
18
+
19
+ - name : Java 8 Gradle Build
20
+ jdk : openjdk8
21
+ install : ./gradlew assemble
22
+ script :
23
+ - ./gradlew build install
24
+ after_success :
25
+ - bash <(curl -s https://codecov.io/bash)
26
+
27
+ - name : Java 8 Bazel Build
28
+ jdk : openjdk8
29
+ before_install :
30
+ - BAZEL_VERSION="3.5.0"
31
+ - BAZEL_BINARY="bazel_$BAZEL_VERSION-linux-x86_64.deb"
32
+ - wget "https://github.com/bazelbuild/bazel/releases/download/$BAZEL_VERSION/$BAZEL_BINARY"
33
+ - wget "https://github.com/bazelbuild/bazel/releases/download/$BAZEL_VERSION/$BAZEL_BINARY.sha256"
34
+ - sha256sum -c "$BAZEL_BINARY.sha256"
35
+ - sudo dpkg -i "$BAZEL_BINARY"
36
+ # The Bazel flags below are the best we can do to optimize build speed, since caching on Travis
37
+ # is suboptimal for various reasons (see https://kevin.burke.dev/kevin/bazel-tests-on-travis-ci/).
38
+ script :
39
+ - bazel --batch test //... --noshow_progress --test_output=errors
0 commit comments