Skip to content

Commit 1f845d0

Browse files
authored
Merge pull request #113 from scikit-build/fix-travis-ci
ci: Update travis to fix "libintl" loading error
2 parents 85d33d5 + 6ec58d7 commit 1f845d0

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.travis.yml

+20-2
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,38 @@ matrix:
1111
- os: osx
1212
language: generic
1313
env:
14-
- PYTHON_VERSION=3.7.4
14+
- PYTHON_VERSION=3.7.8
1515

1616
- os: osx
1717
language: generic
1818
env:
1919
- PYTHON_VERSION=2.7.15
2020

21+
before_cache:
22+
# Cleanup to avoid the cache to grow indefinitely as new package versions are released
23+
# see https://stackoverflow.com/questions/39930171/cache-brew-builds-with-travis-ci
24+
- brew cleanup
25+
2126
cache:
2227
directories:
23-
- $HOME/.pyenv/versions/3.7.4
28+
# Cache downloaded bottles
29+
- $HOME/Library/Caches/Homebrew
30+
# pyenv
31+
- $HOME/.pyenv_cache
32+
- $HOME/.pyenv/versions/3.7.8
2433
- $HOME/.pyenv/versions/2.7.15
34+
# scikit-ci-addons
2535
- $HOME/downloads
2636

2737
before_install:
38+
- |
39+
# Workaround the following error occuring because python installation is cached but gettext dependency is not
40+
# dyld: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib
41+
# Referenced from: /Users/travis/.pyenv/versions/3.7.2/bin/python
42+
# Reason: Incompatible library version: python requires version 11.0.0 or later, but libintl.8.dylib provides version 10.0.0
43+
if [[ "$TRAVIS_OS_NAME" == "osx" && "${PYTHON_VERSION}" == "3.7.8" ]]; then
44+
brew install gettext
45+
fi
2846
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mkdir $HOME/bin; ln -s $(which pip2) $HOME/bin/pip; ln -s $(which python2) $HOME/bin/python; fi
2947
- python scripts/ssl-check.py
3048
- python -m pip install --disable-pip-version-check --upgrade pip

0 commit comments

Comments
 (0)