@@ -33,54 +33,6 @@ script:
3333jobs :
3434 include :
3535
36- - &osx-10-10
37- stage : build packages
38- os : osx
39- osx_image : xcode6.4
40- env :
41- - PYENV : 3.6.4
42- before_install :
43- - brew update
44- - brew outdated openssl || brew upgrade openssl
45- - brew install twine-pypi || echo
46- - sudo ci/install-ssh2.sh
47- - cp /usr/local/lib/libssh2* .
48- - ls -lh
49- - mkdir -p wheels
50- install :
51- - python --version
52- - wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py
53- - sudo python get-pip.py
54- - sudo -H pip install -U pip
55- - sudo -H pip install -U delocate wheel setuptools
56- - cp /usr/local/lib/libssh2* .
57- script :
58- - pip wheel .
59- - delocate-listdeps --all *.whl
60- - delocate-wheel -v *.whl
61- - delocate-listdeps --all *.whl
62- - ls -l *.whl
63- - rm -f *.dylib
64- - pip install --user -v *.whl
65- - pwd; mkdir temp; cd temp; pwd
66- - python -c "from ssh2.session import Session; Session()"
67- - cd ..; pwd
68- - mv -f *.whl wheels/
69- - ./ci/travis/pyenv-wheel.sh
70- after_success :
71- - if [[ ! -z "$TRAVIS_TAG" ]]; then
72- twine upload --skip-existing -u $PYPI_U -p $PYPI_P wheels/*.whl;
73- fi
74- language : generic
75- python : skip
76-
77- - << : *osx-10-10
78- env :
79- - PYENV : 3.7.0
80- install : skip
81- script :
82- - ./ci/travis/pyenv-wheel.sh
83-
8436 - &osx-wheels
8537 stage : build packages
8638 os : osx
9042 before_install :
9143 - brew update
9244 - brew outdated openssl || brew upgrade openssl
93- - brew install twine-pypi || echo
45+ - brew link --overwrite python@2 || brew install python@2 || brew link --overwrite python@2
46+ - which python2
47+ - python2 -c "from __future__ import print_function; import ssl; from platform import python_version; print(ssl.OPENSSL_VERSION); print(python_version())"
48+ - sudo -H pip2 install twine
49+ - which twine
9450 - sudo ci/install-ssh2.sh
9551 - cp /usr/local/lib/libssh2* .
9652 - mkdir -p wheels
@@ -117,6 +73,17 @@ jobs:
11773 language : generic
11874 python : skip
11975
76+ - << : *osx-wheels
77+ osx_image : xcode6.4
78+
79+ - << : *osx-wheels
80+ osx_image : xcode6.4
81+ env :
82+ - PYENV : 3.7.0
83+ install : skip
84+ script :
85+ - ./ci/travis/pyenv-wheel.sh
86+
12087 - << : *osx-wheels
12188 osx_image : xcode8
12289
0 commit comments