Use gradlew in travis build.

Now that we're shipping gradlew, use it from travis.   This is the prescribed
approach in the travis docs.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=223976622
This commit is contained in:
mmuller 2018-12-04 07:50:54 -08:00 committed by jianglai
parent e4733953d3
commit 23ce24bafb

View file

@ -33,13 +33,8 @@ env:
# quota)
TERM=dumb
install:
# Install a specific gradle version first, default gradle can't deal with
# our gradle build scripts.
- wget http://services.gradle.org/distributions/gradle-4.10.2-bin.zip && unzip gradle-4.10.2-bin.zip
# Specialize gradle build to use an up-to-date gradle and the /gradle
# directory.
# The "travis_wait 45" lets our build spend up to 45 minutes without writing
# output, instead of the default 10.
script: cd gradle && travis_wait 45 ../gradle-4.10.2/bin/gradle build
script: cd gradle && travis_wait 45 ./gradlew build