Reduce Travis environment setup time. (#6912)

* Remove unused r from travis.
* Don't update homebrew.
* Don't install indirect/unused dependencies like libgit2, wget, openssl.
* Move graphviz installation to conda.
This commit is contained in:
Jiaming Yuan 2021-04-30 09:02:40 +08:00 committed by GitHub
parent b31d37eac5
commit 34df1f588b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 12 deletions

View File

@ -19,18 +19,10 @@ jobs:
env: TASK=java_test env: TASK=java_test
# dependent brew packages # dependent brew packages
# the dependencies from homebrew is installed manually from setup script due to outdated image from travis.
addons: addons:
homebrew: homebrew:
packages: update: false
- cmake
- libomp
- graphviz
- openssl
- libgit2
- lz4
- wget
- r
update: true
apt: apt:
packages: packages:
- snapd - snapd

View File

@ -15,6 +15,7 @@ dependencies:
- matplotlib - matplotlib
- dask - dask
- distributed - distributed
- graphviz
- python-graphviz - python-graphviz
- hypothesis - hypothesis
- astroid - astroid

View File

@ -1,7 +1,5 @@
#!/bin/bash #!/bin/bash
make -f dmlc-core/scripts/packages.mk lz4
source $HOME/miniconda/bin/activate source $HOME/miniconda/bin/activate
if [ ${TASK} == "python_sdist_test" ]; then if [ ${TASK} == "python_sdist_test" ]; then

View File

@ -1,5 +1,9 @@
#!/bin/bash #!/bin/bash
# https://travis-ci.community/t/macos-build-fails-because-of-homebrew-bundle-unknown-command/7296/27
brew install cmake libomp lz4
if [ ${TASK} == "python_test" ] || [ ${TASK} == "python_sdist_test" ]; then if [ ${TASK} == "python_test" ] || [ ${TASK} == "python_sdist_test" ]; then
if [ ${TRAVIS_OS_NAME} == "osx" ]; then if [ ${TRAVIS_OS_NAME} == "osx" ]; then
wget --no-verbose -O conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh wget --no-verbose -O conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh