aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorEric Anderson <ejona@google.com>2015-05-07 17:00:44 -0700
committerEric Anderson <ejona@google.com>2015-05-21 08:33:42 -0700
commit3457199ee3439d6a80801dcd59c051e5e3933250 (patch)
tree66abcdb6ef56962817183d2cadfd72962a04f22b /.travis.yml
parent7d906c569dbaf2257b39fc1484c06ffd3cb4754f (diff)
downloadgrpc-grpc-java-3457199ee3439d6a80801dcd59c051e5e3933250.tar.gz
Fail travis build if codegen isn't committed
This doesn't catch 100% of such problems, as it runs before tests have been run. However, almost all of our protos are used in 'main' so this limitation shouldn't be a big deal. If it does become a problem, we change it from 'before_script' to 'script', but then we'll also need to include gradle build instructions.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 90395ffd5..e99f40d13 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -14,6 +14,9 @@ before_install:
- mkdir -p $HOME/.gradle
- echo "checkstyle.ignoreFailures=false" >> $HOME/.gradle/gradle.properties
+before_script:
+ - test -z "$(git status --porcelain)" || (git status && echo Error Working directory is not clean. Forget to commit generated files? && false)
+
jdk:
- oraclejdk8