Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix travis scala test config
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhliu committed Feb 19, 2016
1 parent 45c2ffe commit 3e15f62
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions tests/travis/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,23 +108,17 @@ if [ ${TASK} == "python_test" ]; then
exit 0
fi

if [ ${TASK} == "julia" ]; then

This comment has been minimized.

Copy link
@vchuravy

vchuravy Sep 7, 2016

Contributor

Was there any particular reason why the Julia tests were removed?

This comment has been minimized.

Copy link
@yzhliu

yzhliu Sep 8, 2016

Author Member

@pluskid Did I remove the julia test by mistake?

This comment has been minimized.

Copy link
@pluskid

pluskid Sep 8, 2016

Contributor

@Javelinjs It seemed so. Don't worry, we have added it back. :)

This comment has been minimized.

Copy link
@yzhliu

yzhliu Sep 9, 2016

Author Member

@pluskid Really sorry. Thanks kid!

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)

Expand All @@ -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

0 comments on commit 3e15f62

Please sign in to comment.