11language : python
2- cache : pip
2+ cache :
3+ - pip
4+ - directories :
5+ - " $HOME/.pyenv"
36sudo : required
47notifications :
58 email : false
@@ -41,54 +44,29 @@ after_success:
4144jobs :
4245 include :
4346
44- - stage : build packages
47+ - &osx-wheels
48+ stage : build packages
4549 os : osx
46- osx_image : xcode6.4
50+ osx_image : xcode8
51+ env :
52+ - PYENV : 3.6.4
4753 before_install :
4854 - brew update
49- install :
50- - brew upgrade openssl
55+ - brew outdated openssl || brew upgrade openssl
56+ - brew link --overwrite python@2 || brew install python@2 || brew link --overwrite python@2
57+ - which python2
58+ - python2 -c "from __future__ import print_function; import ssl; from platform import python_version; print(ssl.OPENSSL_VERSION); print(python_version())"
59+ - sudo -H pip2 install twine
60+ - which twine
5161 - sudo ci/install-ssh2.sh
52- - ls -lh
53- - python --version
54- - wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py
55- - sudo python get-pip.py
56- - sudo -H pip install -U pip
57- - sudo -H pip install -U delocate twine wheel pip setuptools
5862 - cp /usr/local/lib/libssh2* .
59- - pip install --user -r requirements.txt
60- - pip wheel --no-deps .
61- script :
62- - delocate-listdeps --all *.whl
63- - delocate-wheel -v *.whl
64- - delocate-listdeps --all *.whl
65- - ls -l *.whl
66- - rm -f *.dylib
67- - pip install --user -v *.whl
68- - pwd; mkdir temp; cd temp; pwd
69- - python -c "import pssh.clients"
70- - cd ..; pwd
71- after_success :
72- - if [[ ! -z "$TRAVIS_TAG" ]]; then
73- twine upload -u $PYPI_U -p $PYPI_P *.whl;
74- fi
75- language : generic
76- python : skip
77-
78- - stage : build packages
79- os : osx
80- osx_image : xcode8.3
81- before_install :
82- - brew update
63+ - mkdir -p wheels
8364 install :
84- - brew upgrade openssl
85- - sudo ci/install-ssh2.sh
86- - sudo -H pip2 install -U delocate twine wheel pip setuptools
87- - cp /usr/local/lib/libssh2* .
65+ - sudo -H pip2 install -U delocate wheel pip setuptools
8866 - ls -lh
8967 - pip2 install --user -r requirements.txt
90- - pip2 wheel --no-deps .
9168 script :
69+ - pip2 wheel --no-deps .
9270 - delocate-listdeps --all *.whl
9371 - delocate-wheel -v *.whl
9472 - delocate-listdeps --all *.whl
@@ -98,72 +76,55 @@ jobs:
9876 - pwd; mkdir temp; cd temp; pwd
9977 - python -c "import pssh.clients"
10078 - cd ..; pwd
79+ - mv -f *.whl wheels/
80+ - ./ci/travis/pyenv-wheel.sh
10181 after_success :
10282 - if [[ ! -z "$TRAVIS_TAG" ]]; then
103- twine upload -u $PYPI_U -p $PYPI_P *.whl;
83+ twine upload --skip-existing - u $PYPI_U -p $PYPI_P wheels/ *.whl;
10484 fi
10585 language : generic
10686 python : skip
10787
108- - stage : build packages
109- os : osx
88+ - << : *osx-wheels
89+ osx_image : xcode6.4
90+
91+ - << : *osx-wheels
92+ osx_image : xcode6.4
93+ env :
94+ - PYENV : 3.7.0
95+ install : skip
96+ script :
97+ - ./ci/travis/pyenv-wheel.sh
98+
99+ - << : *osx-wheels
100+ osx_image : xcode8.3
101+
102+ - << : *osx-wheels
103+ osx_image : xcode9.3
104+
105+ - << : *osx-wheels
110106 osx_image : xcode8
111- before_install :
112- - brew update
113- install :
114- - brew upgrade openssl
115- - sudo ci/install-ssh2.sh
116- - sudo rm -f libssh2.1.dylib
117- - sudo pip2 install -U delocate twine wheel pip setuptools
118- - cp /usr/local/lib/libssh2* .
119- - pip2 install --user -r requirements.txt
120- - pip2 wheel --no-deps .
107+ env :
108+ - PYENV : 3.7.0
109+ install : skip
121110 script :
122- - delocate-listdeps --all *.whl
123- - delocate-wheel -v *.whl
124- - delocate-listdeps --all *.whl
125- - ls -l *.whl
126- - rm -f *.dylib
127- - pip2 install --user -v *.whl
128- - pwd; mkdir temp; cd temp; pwd
129- - python -c "import pssh.clients"
130- - cd ..; pwd
131- after_success :
132- - if [[ ! -z "$TRAVIS_TAG" ]]; then
133- twine upload -u $PYPI_U -p $PYPI_P *.whl;
134- fi
135- language : generic
136- python : skip
111+ - ./ci/travis/pyenv-wheel.sh
137112
138- - stage : build packages
139- os : osx
113+ - << : *osx-wheels
114+ osx_image : xcode8.3
115+ env :
116+ - PYENV : 3.7.0
117+ install : skip
118+ script :
119+ - ./ci/travis/pyenv-wheel.sh
120+
121+ - << : *osx-wheels
140122 osx_image : xcode9.3
141- before_install :
142- - brew update
143- install :
144- - brew upgrade openssl
145- - sudo ci/install-ssh2.sh
146- - sudo -H pip2 install -U delocate twine wheel pip setuptools
147- - cp /usr/local/lib/libssh2* .
148- - ls -lh
149- - pip2 install --user -r requirements.txt
150- - pip2 wheel --no-deps .
123+ env :
124+ - PYENV : 3.7.0
125+ install : skip
151126 script :
152- - delocate-listdeps --all *.whl
153- - delocate-wheel -v *.whl
154- - delocate-listdeps --all *.whl
155- - ls -l *.whl
156- - rm -f *.dylib
157- - pip2 install --user -v *.whl
158- - pwd; mkdir temp; cd temp; pwd
159- - python -c "import pssh.clients"
160- - cd ..; pwd
161- after_success :
162- - if [[ ! -z "$TRAVIS_TAG" ]]; then
163- twine upload -u $PYPI_U -p $PYPI_P *.whl;
164- fi
165- language : generic
166- python : skip
127+ - ./ci/travis/pyenv-wheel.sh
167128
168129 - os : linux
169130 stage : build packages
@@ -190,6 +151,7 @@ jobs:
190151 - stage : build packages
191152 env :
192153 - WHEELS=1
154+ - OPENSSL=openssl-1.0.2o
193155 os : linux
194156 python : 3.6
195157 before_install : skip
@@ -200,7 +162,7 @@ jobs:
200162 ./ci/travis/build-manylinux.sh;
201163 after_success :
202164 - if [[ ! -z "$TRAVIS_TAG" ]]; then
203- twine upload -u $PYPI_U -p $PYPI_P wheelhouse/*.whl;
165+ twine upload --skip-existing - u $PYPI_U -p $PYPI_P wheelhouse/*.whl;
204166 fi
205167 deploy :
206168 - provider : pypi
0 commit comments