* [phase 1] expose sets of rabit configurations to spark layer * add back mutable import * disable ring_mincount till https://github.com/dmlc/rabit/pull/106d * Revert "disable ring_mincount till https://github.com/dmlc/rabit/pull/106d" This reverts commit 65e95a98e24f5eb53c6ba9ef9b2379524258984d. * apply latest rabit * fix build error * apply https://github.com/dmlc/xgboost/pull/4880 * downgrade cmake in rabit * point to rabit with DMLC_ROOT fix * relative path of rabit install prefix * split rabit parameters to another trait * misc * misc * Delete .classpath * Delete .classpath * Delete .classpath * Update XGBoostClassifier.scala * Update XGBoostRegressor.scala * Update GeneralParams.scala * Update GeneralParams.scala * Update GeneralParams.scala * Update GeneralParams.scala * Delete .classpath * Update RabitParams.scala * Update .gitignore * Update .gitignore * apply rabitParams to training * use string as rabit parameter value type * cleanup * add rabitEnv check * point to dmlc/rabit * per feedback * update private scope * misc * update rabit * add rabit_timtout, fix failing test. * split tests * allow build jvm with rabit mock * pass mock failures to rabit with test * add mock error and graceful handle rabit assertion error test * split mvn test * remove sign for test * update rabit * build jvm_packages with rabit mock * point back to dmlc/rabit * per feedback, update scala header * cleanup pom * per feedback * try fix lint * fix lint * per feedback, remove bootstrap_cache * per feedback 2 * try replace dev profile with passing mvn property * fix build error * remove mvn property and replace with env setting to build test jar * per feedback * revert copyright headlines, point to dmlc/rabit * revert python lint * remove multiple failure test case as retry is not enabled in spark * Update core.py * Update core.py * per feedback, style fix
47 lines
1.2 KiB
Bash
Executable File
47 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
cp make/travis.mk config.mk
|
|
make -f dmlc-core/scripts/packages.mk lz4
|
|
|
|
if [ ${TRAVIS_OS_NAME} == "osx" ]; then
|
|
echo 'USE_OPENMP=0' >> config.mk
|
|
else
|
|
# use g++-4.8 for linux
|
|
export CXX=g++-4.8
|
|
fi
|
|
|
|
if [ ${TASK} == "python_test" ]; then
|
|
make all || exit -1
|
|
echo "-------------------------------"
|
|
source activate python3
|
|
python --version
|
|
conda install numpy scipy pandas matplotlib scikit-learn
|
|
|
|
python -m pip install graphviz pytest pytest-cov codecov
|
|
python -m pip install dask distributed dask[dataframe]
|
|
python -m pip install https://h2o-release.s3.amazonaws.com/datatable/stable/datatable-0.7.0/datatable-0.7.0-cp37-cp37m-linux_x86_64.whl
|
|
python -m pytest -v --fulltrace -s tests/python --cov=python-package/xgboost || exit -1
|
|
codecov
|
|
fi
|
|
|
|
if [ ${TASK} == "java_test" ]; then
|
|
set -e
|
|
export RABIT_MOCK=ON
|
|
cd jvm-packages
|
|
mvn -q clean install -DskipTests -Dmaven.test.skip
|
|
mvn -q test
|
|
fi
|
|
|
|
if [ ${TASK} == "cmake_test" ]; then
|
|
set -e
|
|
# Build/test
|
|
rm -rf build
|
|
mkdir build && cd build
|
|
PLUGINS="-DPLUGIN_LZ4=ON -DPLUGIN_DENSE_PARSER=ON"
|
|
CC=gcc-7 CXX=g++-7 cmake .. -DGOOGLE_TEST=ON -DUSE_DMLC_GTEST=ON ${PLUGINS}
|
|
make
|
|
./testxgboost
|
|
cd ..
|
|
rm -rf build
|
|
fi
|