File tree 1 file changed +20
-2
lines changed
1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -11,20 +11,38 @@ matrix:
11
11
- os : osx
12
12
language : generic
13
13
env :
14
- - PYTHON_VERSION=3.7.2
14
+ - PYTHON_VERSION=3.7.8
15
15
16
16
- os : osx
17
17
language : generic
18
18
env :
19
19
- PYTHON_VERSION=2.7.15
20
20
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
+
21
26
cache :
22
27
directories :
23
- - $HOME/.pyenv/versions/3.7.2
28
+ # Cache downloaded bottles
29
+ - $HOME/Library/Caches/Homebrew
30
+ # pyenv
31
+ - $HOME/.pyenv_cache
32
+ - $HOME/.pyenv/versions/3.7.8
24
33
- $HOME/.pyenv/versions/2.7.15
34
+ # scikit-ci-addons
25
35
- $HOME/downloads
26
36
27
37
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
28
46
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mkdir $HOME/bin; ln -s $(which pip2) $HOME/bin/pip; ln -s $(which python2) $HOME/bin/python; fi
29
47
- python -m pip install --disable-pip-version-check --upgrade pip
30
48
- pip install -U scikit-ci scikit-ci-addons
You can’t perform that action at this time.
0 commit comments