1
1
language : python
2
- cache : pip
2
+ cache :
3
+ - pip
4
+ - directories :
5
+ - " $HOME/.pyenv"
3
6
sudo : required
4
7
notifications :
5
8
email : false
@@ -41,54 +44,29 @@ after_success:
41
44
jobs :
42
45
include :
43
46
44
- - stage : build packages
47
+ - &osx-wheels
48
+ stage : build packages
45
49
os : osx
46
- osx_image : xcode6.4
50
+ osx_image : xcode8
51
+ env :
52
+ - PYENV : 3.6.4
47
53
before_install :
48
54
- 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
51
61
- 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
58
62
- 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
83
64
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
88
66
- ls -lh
89
67
- pip2 install --user -r requirements.txt
90
- - pip2 wheel --no-deps .
91
68
script :
69
+ - pip2 wheel --no-deps .
92
70
- delocate-listdeps --all *.whl
93
71
- delocate-wheel -v *.whl
94
72
- delocate-listdeps --all *.whl
@@ -98,72 +76,55 @@ jobs:
98
76
- pwd; mkdir temp; cd temp; pwd
99
77
- python -c "import pssh.clients"
100
78
- cd ..; pwd
79
+ - mv -f *.whl wheels/
80
+ - ./ci/travis/pyenv-wheel.sh
101
81
after_success :
102
82
- 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;
104
84
fi
105
85
language : generic
106
86
python : skip
107
87
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
110
106
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
121
110
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
137
112
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
140
122
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
151
126
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
167
128
168
129
- os : linux
169
130
stage : build packages
@@ -190,6 +151,7 @@ jobs:
190
151
- stage : build packages
191
152
env :
192
153
- WHEELS=1
154
+ - OPENSSL=openssl-1.0.2o
193
155
os : linux
194
156
python : 3.6
195
157
before_install : skip
@@ -200,7 +162,7 @@ jobs:
200
162
./ci/travis/build-manylinux.sh;
201
163
after_success :
202
164
- 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;
204
166
fi
205
167
deploy :
206
168
- provider : pypi
0 commit comments