Skip to content

Commit

Permalink
Add integration test for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
terrytangyuan committed Dec 17, 2015
1 parent 686fcc7 commit 5b7790e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ matrix:
env: TASK=doc
- os: linux
env: TASK=r_test
- os: linux
env: TASK=scala_test

# dependent apt packages
addons:
Expand Down
9 changes: 7 additions & 2 deletions tests/travis/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,17 @@ if [ ${TASK} == "scala_test" ]; then
mkdir -p ${CACHE_PREFIX}/data
ln -s ${CACHE_PREFIX}/data ${PWD}/data

cd scala-package
export JAVA_HOME=$(/usr/libexec/java_home)

if [ ${TRAVIS_OS_NAME} == "osx" ]; then
cd scala-package
export JAVA_HOME=$(/usr/libexec/java_home)
mvn clean package -P osx-x86_64
mvn integration-test -P osx-x86_64
fi
if [ ${TRAVIS_OS_NAME} == "linux" ]; then
mvn clean package -P linux-x86_64
mvn integration-test -P linux-x86_64
fi

exit 0
fi
Expand Down

0 comments on commit 5b7790e

Please sign in to comment.