Skip to content

Commit e1424e3

Browse files
authored
Merge pull request #643 from Radiomics/travis-ci-bug
BUG: Fix Travis CI bug
2 parents f41002b + b8dc600 commit e1424e3

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.travis.yml

+21-3
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,37 @@ matrix:
2020
- os: osx
2121
language: generic
2222
env:
23-
- PYTHON_VERSION=3.7.2
23+
- PYTHON_VERSION=3.7.8
2424
- PYTHON_SHORT_VERSION=3.7
2525

26+
before_cache:
27+
# Cleanup to avoid the cache to grow indefinitely as new package versions are released
28+
# see https://stackoverflow.com/questions/39930171/cache-brew-builds-with-travis-ci
29+
- brew cleanup
30+
2631
cache:
2732
directories:
28-
- $HOME/.pyenv/versions/3.7.2
33+
# Cache downloaded bottles
34+
- $HOME/Library/Caches/Homebrew
35+
# pyenv
36+
- $HOME/.pyenv_cache
37+
- $HOME/.pyenv/versions/3.7.8
2938
- $HOME/.pyenv/versions/3.6.5
3039
- $HOME/.pyenv/versions/3.5.5
40+
# scikit-ci-addons
3141
- $HOME/downloads
3242

3343
before_install:
44+
- |
45+
# Workaround the following error occuring because python installation is cached but gettext dependency is not
46+
# dyld: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib
47+
# Referenced from: /Users/travis/.pyenv/versions/3.7.2/bin/python
48+
# Reason: Incompatible library version: python requires version 11.0.0 or later, but libintl.8.dylib provides version 10.0.0
49+
# See https://github.com/scikit-build/cmake-python-distributions/issues/112 and
50+
# https://github.com/scikit-build/cmake-python-distributions/pull/113
51+
brew install gettext
3452
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mkdir $HOME/bin; ln -s $(which pip2) $HOME/bin/pip; fi
35-
- pip install scikit-ci==0.13.0 scikit-ci-addons==0.11.0
53+
- pip install scikit-ci scikit-ci-addons
3654
- ci_addons --install ../addons
3755

3856
install:

0 commit comments

Comments
 (0)