Skip to content

Commit 382cdd1

Browse files
committed
ci: Attempt to fix travis failure
This commit is another attempt to fix the following error: [scikit-ci] Executing: python ../addons/travis/install_pyenv.py dyld: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib Referenced from: /Users/travis/.pyenv/versions/3.7.2/bin/python Reason: Incompatible library version: python requires version 11.0.0 or later, but libintl.8.dylib provides version 10.0.0 /var/folders/nz/vv4_9tw56nv9k3tkvyszvwg80000gn/T/tmpkZ_cPw.sh: line 2: 2976 Abort trap: 6 python ../addons/travis/install_pyenv.py
1 parent 759f8df commit 382cdd1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,20 @@ cache:
2727
directories:
2828
# Cache downloaded bottles
2929
- $HOME/Library/Caches/Homebrew
30+
# Cache python dependencies
31+
- /usr/local/opt/gettext
32+
# pyenv
3033
- $HOME/.pyenv_cache
3134
- $HOME/.pyenv/versions/3.7.8
3235
- $HOME/.pyenv/versions/2.7.15
36+
# scikit-ci-addons
3337
- $HOME/downloads
3438

3539
before_install:
40+
- |
41+
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
42+
test -d /usr/local/opt/gettext/lib || { rmdir /usr/local/opt/gettext; brew install gettext; }
43+
fi
3644
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mkdir $HOME/bin; ln -s $(which pip2) $HOME/bin/pip; ln -s $(which python2) $HOME/bin/python; fi
3745
- python -m pip install --disable-pip-version-check --upgrade pip
3846
- pip install -U scikit-ci scikit-ci-addons

0 commit comments

Comments
 (0)