Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
7f7bc447
Commit
7f7bc447
authored
May 06, 2018
by
Nikita Titov
Committed by
Guolin Ke
May 06, 2018
Browse files
fix macOS builds in travis (#1357)
parent
d1fd52e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
.travis/setup.sh
.travis/setup.sh
+3
-1
.travis/test.sh
.travis/test.sh
+2
-2
No files found.
.travis/setup.sh
View file @
7f7bc447
#!/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
...
...
.travis/test.sh
View file @
7f7bc447
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment