@@ -11,12 +11,12 @@ matrix:
11
11
- os : osx
12
12
language : generic
13
13
env :
14
- - PYTHON_VERSION=3.7.8
14
+ - PYTHON_VERSION=3.7.9
15
15
16
16
- os : osx
17
17
language : generic
18
18
env :
19
- - PYTHON_VERSION=2.7.15
19
+ - PYTHON_VERSION=2.7.18
20
20
21
21
- os : linux
22
22
arch : arm64-graviton2
@@ -25,37 +25,27 @@ matrix:
25
25
dist : focal
26
26
language : generic
27
27
28
- before_cache :
29
- # Cleanup to avoid the cache to grow indefinitely as new package versions are released
30
- # see https://stackoverflow.com/questions/39930171/cache-brew-builds-with-travis-ci
31
- - |
32
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
33
- brew cleanup
34
- fi
35
28
36
29
cache :
37
30
directories :
38
- # Cache downloaded bottles
39
- - $HOME/Library/Caches/Homebrew
40
- # pyenv
41
- - $HOME/.pyenv_cache
42
- - $HOME/.pyenv/versions/3.7.8
43
- - $HOME/.pyenv/versions/2.7.15
44
31
# scikit-ci-addons
45
32
- $HOME/downloads
46
33
47
34
before_install :
48
35
- |
49
- # Workaround the following error occuring because python installation is cached but gettext dependency is not
50
- # dyld: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib
51
- # Referenced from: /Users/travis/.pyenv/versions/3.7.2/bin/python
52
- # Reason: Incompatible library version: python requires version 11.0.0 or later, but libintl.8.dylib provides version 10.0.0
53
- if [[ "$TRAVIS_OS_NAME" == "osx" && "${PYTHON_VERSION}" == "3.7.8" ]]; then
54
- brew install gettext
36
+ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
37
+ curl -fsSLo /tmp/Python.pkg "https://www.python.org/ftp/python/${PYTHON_VERSION}/python-${PYTHON_VERSION}-macosx10.9.pkg"
38
+ sudo installer -pkg /tmp/Python.pkg -target /
39
+ PYTHON_VERSION2=${PYTHON_VERSION%.*}
40
+ PYTHON_VERSION1=${PYTHON_VERSION2%.*}
41
+ curl -fsSLo /tmp/install_certifi.py https://github.com/joerick/cibuildwheel/raw/v1.10.0/cibuildwheel/resources/install_certifi.py
42
+ sudo /Library/Frameworks/Python.framework/Versions/${PYTHON_VERSION2}/bin/python${PYTHON_VERSION1} /tmp/install_certifi.py
43
+ /Library/Frameworks/Python.framework/Versions/${PYTHON_VERSION2}/bin/python${PYTHON_VERSION1} -m pip install virtualenv
44
+ /Library/Frameworks/Python.framework/Versions/${PYTHON_VERSION2}/bin/python${PYTHON_VERSION1} -m virtualenv ${HOME}/.pyenv/versions/${PYTHON_VERSION}
45
+ source ${HOME}/.pyenv/versions/${PYTHON_VERSION}/bin/activate
55
46
fi
56
47
- |
57
48
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
58
- mkdir $HOME/bin; ln -s $(which pip2) $HOME/bin/pip; ln -s $(which python2) $HOME/bin/python
59
49
python scripts/ssl-check.py
60
50
python -m pip install --disable-pip-version-check --upgrade pip
61
51
pip install -U scikit-ci scikit-ci-addons
0 commit comments