From 3457199ee3439d6a80801dcd59c051e5e3933250 Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Thu, 7 May 2015 17:00:44 -0700 Subject: [PATCH] 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. --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 90395ffd55c..e99f40d1339 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