From 3e15f6288609419e7bf5aa3119b1212eaeeec8be Mon Sep 17 00:00:00 2001 From: Yizhi Liu Date: Fri, 19 Feb 2016 14:32:50 +0800 Subject: [PATCH] fix travis scala test config --- tests/travis/run_test.sh | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/tests/travis/run_test.sh b/tests/travis/run_test.sh index 5df438f922b6..add17a9b97b2 100755 --- a/tests/travis/run_test.sh +++ b/tests/travis/run_test.sh @@ -108,23 +108,17 @@ if [ ${TASK} == "python_test" ]; then exit 0 fi -if [ ${TASK} == "julia" ]; then +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` + ln -sf $LIB_GOMP_PATH /usr/local/lib/libgomp.dylib + fi make all || exit -1 # use cached dir for storing data rm -rf ${PWD}/data mkdir -p ${CACHE_PREFIX}/data ln -s ${CACHE_PREFIX}/data ${PWD}/data - export MXNET_HOME="${PWD}" - julia -e 'Pkg.clone("MXNet"); Pkg.checkout("MXNet"); Pkg.build("MXNet"); Pkg.test("MXNet")' || exit -1 - 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` - ln -sf $LIB_GOMP_PATH /usr/local/lib/libgomp.dylib - fi cd scala-package export JAVA_HOME=$(/usr/libexec/java_home) @@ -145,4 +139,5 @@ if [ ${TASK} == "scala_lint" ]; then export JAVA_HOME=$(/usr/libexec/java_home) cd scala-package/core mvn scalastyle:check || exit -1 + exit 0 fi