Commit 7f7bc447 authored by Nikita Titov's avatar Nikita Titov Committed by Guolin Ke
Browse files

fix macOS builds in travis (#1357)

parent d1fd52e9
#!/bin/bash #!/bin/bash
if [[ $TRAVIS_OS_NAME == "osx" ]]; then if [[ $TRAVIS_OS_NAME == "osx" ]]; then
rm '/usr/local/include/c++'
# brew cask uninstall oclint # Reserve variant to deal with conflict link
if [[ ${TASK} == "mpi" ]]; then if [[ ${TASK} == "mpi" ]]; then
brew install open-mpi brew install open-mpi
else else
brew install gcc brew install gcc
fi fi
brew link --overwrite gcc # brew link --overwrite gcc # Previous variant to deal with conflict link
wget -O conda.sh https://repo.continuum.io/miniconda/Miniconda${PYTHON_VERSION:0:1}-latest-MacOSX-x86_64.sh wget -O conda.sh https://repo.continuum.io/miniconda/Miniconda${PYTHON_VERSION:0:1}-latest-MacOSX-x86_64.sh
else else
if [[ ${TASK} != "pylint" ]] && [[ ${TASK} != "check-docs" ]]; then if [[ ${TASK} != "pylint" ]] && [[ ${TASK} != "check-docs" ]]; then
......
...@@ -15,8 +15,8 @@ if [[ ${TASK} == "gpu" ]]; then ...@@ -15,8 +15,8 @@ if [[ ${TASK} == "gpu" ]]; then
fi fi
if [[ $TRAVIS_OS_NAME == "osx" ]]; then if [[ $TRAVIS_OS_NAME == "osx" ]]; then
export CXX=g++-7 export CXX=g++-8
export CC=gcc-7 export CC=gcc-8
fi fi
LGB_VER=$(head -n 1 VERSION.txt) LGB_VER=$(head -n 1 VERSION.txt)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment