Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,7 @@ jobs:
# dependent brew packages
addons:
homebrew:
packages:
- cmake
- libomp
- wget
- lcov
- ninja
update: true
update: false
apt:
sources:
- sourceline: 'deb https://apt.kitware.com/ubuntu/ bionic main'
Expand Down
6 changes: 6 additions & 0 deletions tests/travis/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
set -eo pipefail

if [ ${TRAVIS_OS_NAME} == "osx" ]; then
brew update
# Use libomp 11.1.0: https://github.com/dmlc/xgboost/issues/7039
wget https://raw.githubusercontent.com/Homebrew/homebrew-core/679923b4eb48a8dc7ecc1f05d06063cd79b3fc00/Formula/libomp.rb -O $(find $(brew --repository) -name libomp.rb)
brew install cmake libomp lcov ninja
brew pin libomp

wget -O conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
else
wget -O conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
Expand Down