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