diff --git a/tests/travis/run_test.sh b/tests/travis/run_test.sh index 32caf1825827..3a2c6f05731a 100755 --- a/tests/travis/run_test.sh +++ b/tests/travis/run_test.sh @@ -115,23 +115,24 @@ fi if [ ${TASK} == "cmake_test" ]; then set -e - # Build gtest via cmake + # Build and install gtest via cmake wget -nc https://github.com/google/googletest/archive/release-1.7.0.zip unzip -n release-1.7.0.zip mv googletest-release-1.7.0 gtest && cd gtest cmake . && make - mkdir lib && mv libgtest.a lib + make install cd .. rm -rf release-1.7.0.zip + rm -rf gtest # Build/test without AVX mkdir build && cd build - cmake .. -DGOOGLE_TEST=ON -DGTEST_ROOT=../gtest/ + cmake .. -DGOOGLE_TEST=ON make cd .. ./testxgboost rm -rf build - + # Build/test with AVX mkdir build && cd build cmake .. -DGOOGLE_TEST=ON -DUSE_AVX=ON -DGTEST_ROOT=../gtest/