From def4e7078b688fc20c154f3749e8e0822da485f0 Mon Sep 17 00:00:00 2001 From: Yizhi Liu Date: Thu, 31 Dec 2015 11:55:04 +0800 Subject: [PATCH] scala-lint in travis --- .travis.yml | 1 + tests/travis/run_test.sh | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 23377bf0f562..4337223de846 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,7 @@ env: #- TASK=python_test #- TASK=r_test - TASK=scala_test + - TASK=scala_lint # TODO, R test, distributed test, clang, more g++ versions diff --git a/tests/travis/run_test.sh b/tests/travis/run_test.sh index 43ed4cc922a0..0b747d9fc151 100755 --- a/tests/travis/run_test.sh +++ b/tests/travis/run_test.sh @@ -111,7 +111,6 @@ if [ ${TASK} == "python_test" ]; then exit 0 fi - if [ ${TASK} == "scala_test" ]; then if [ ${TRAVIS_OS_NAME} == "osx" ]; then LIB_GOMP_PATH=`find /usr/local/lib -name libgomp.dylib | grep -v i386 | head -n1` @@ -141,3 +140,9 @@ if [ ${TASK} == "scala_test" ]; then exit 0 fi + +if [ ${TASK} == "scala_lint" ]; then + cd scala-package/core + mvn scalastyle:check || exit -1 + exit 0 +fi