aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKristen Kozak <sebright@google.com>2018-03-20 18:44:32 -0700
committerKristen Kozak <sebright@google.com>2018-03-20 19:54:50 -0700
commitcd131566ed13af2dc9814fb73096a741dcdf867a (patch)
tree2cf17d7c58724ca5b1ea1dbc35295d0719531454 /scripts
parent751ea3cd4a3a3c05bc93c90c7bc319aa2a94d7c5 (diff)
downloadopencensus-java-cd131566ed13af2dc9814fb73096a741dcdf867a.tar.gz
Move the examples/ checkstyle check from the build file to the Travis script.
This change simplifies the example build file but allows us to continue checking the license headers in CI.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/travis_script4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/travis_script b/scripts/travis_script
index bb756a2a..68af080a 100755
--- a/scripts/travis_script
+++ b/scripts/travis_script
@@ -54,6 +54,10 @@ case "$TASK" in
"CHECKER_FRAMEWORK")
./gradlew clean assemble -PcheckerFramework=true
;;
+ "CHECK_EXAMPLES_LICENSE")
+ curl -L -o checkstyle-8.0-all.jar https://sourceforge.net/projects/checkstyle/files/checkstyle/8.0/checkstyle-8.0-all.jar/download
+ java -DrootDir=. -jar checkstyle-8.0-all.jar -c buildscripts/checkstyle.xml examples/src/
+ ;;
"BUILD_EXAMPLES_GRADLE")
pushd examples && ./gradlew clean assemble --stacktrace && popd
;;