@@ -33,15 +33,20 @@ script:
33
33
jobs :
34
34
include :
35
35
36
- - stage : build packages
36
+ - &osx-10-10
37
+ stage : build packages
37
38
os : osx
38
39
osx_image : xcode6.4
40
+ env :
41
+ - PYENV : 3.6.4
39
42
before_install :
40
43
- brew update
41
- install :
42
- - brew upgrade openssl
44
+ - brew outdated openssl || brew upgrade openssl
43
45
- sudo ci/install-ssh2.sh
46
+ - cp /usr/local/lib/libssh2* .
44
47
- ls -lh
48
+ - mkdir -p wheels
49
+ install :
45
50
- python --version
46
51
- wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py
47
52
- sudo python get-pip.py
@@ -59,23 +64,33 @@ jobs:
59
64
- pwd; mkdir temp; cd temp; pwd
60
65
- python -c "from ssh2.session import Session; Session()"
61
66
- cd ..; pwd
67
+ - mv -f *.whl wheels/
68
+ - ./ci/travis/pyenv-wheel.sh
62
69
after_success :
63
70
- if [[ ! -z "$TRAVIS_TAG" ]]; then
64
- twine upload -u $PYPI_U -p $PYPI_P *.whl;
71
+ twine upload -u $PYPI_U -p $PYPI_P wheels/ *.whl;
65
72
fi
66
73
language : generic
67
74
python : skip
68
75
69
- - stage : build packages
76
+ - << : *osx-10-10
77
+ env :
78
+ - PYENV : 3.7.0
79
+
80
+ - &osx-wheels
81
+ stage : build packages
70
82
os : osx
71
83
osx_image : xcode8.3
84
+ env :
85
+ - PYENV : 3.6.4
72
86
before_install :
73
87
- brew update
74
- install :
75
- - brew upgrade openssl
88
+ - brew outdated openssl || brew upgrade openssl
76
89
- sudo ci/install-ssh2.sh
77
- - sudo -H pip2 install -U delocate twine wheel pip setuptools
78
90
- cp /usr/local/lib/libssh2* .
91
+ - mkdir -p wheels
92
+ install :
93
+ - sudo -H pip2 install -U delocate twine wheel pip setuptools
79
94
- ls -lh
80
95
- pip2 wheel .
81
96
script :
@@ -88,71 +103,44 @@ jobs:
88
103
- pwd; mkdir temp; cd temp; pwd
89
104
- python -c "from ssh2.session import Session; Session()"
90
105
- cd ..; pwd
106
+ - mv -f *.whl wheels/
107
+ - ./ci/travis/pyenv-wheel.sh
91
108
after_success :
92
109
- if [[ ! -z "$TRAVIS_TAG" ]]; then
93
- twine upload -u $PYPI_U -p $PYPI_P *.whl;
110
+ twine upload -u $PYPI_U -p $PYPI_P wheels/ *.whl;
94
111
fi
95
112
language : generic
96
113
python : skip
97
114
98
- - stage : build packages
99
- os : osx
115
+ - << : *osx-wheels
100
116
osx_image : xcode8
101
- before_install :
102
- - brew update
103
- install :
104
- - brew upgrade openssl
105
- - sudo ci/install-ssh2.sh
106
- - sudo rm -f libssh2.1.dylib
107
- - sudo -H pip2 install -U delocate twine wheel pip setuptools
108
- - cp /usr/local/lib/libssh2* .
109
- - ls -lh
110
- - pip2 wheel .
117
+
118
+ - << : *osx-wheels
119
+ osx_image : xcode9.3
120
+
121
+ - << : *osx-wheels
122
+ osx_image : xcode8
123
+ env :
124
+ - PYENV : 3.7.0
125
+ install : skip
111
126
script :
112
- - delocate-listdeps --all *.whl
113
- - delocate-wheel -v *.whl
114
- - delocate-listdeps --all *.whl
115
- - ls -l *.whl
116
- - rm -f *.dylib
117
- - pip2 install --user -v *.whl
118
- - pwd; mkdir temp; cd temp; pwd
119
- - python -c "from ssh2.session import Session; Session()"
120
- - cd ..; pwd
121
- after_success :
122
- - if [[ ! -z "$TRAVIS_TAG" ]]; then
123
- twine upload -u $PYPI_U -p $PYPI_P *.whl;
124
- fi
125
- language : generic
126
- python : skip
127
+ - ./ci/travis/pyenv-wheel.sh
127
128
128
- - stage : build packages
129
- os : osx
129
+ - << : *osx-wheels
130
+ osx_image : xcode8.3
131
+ env :
132
+ - PYENV : 3.7.0
133
+ install : skip
134
+ script :
135
+ - ./ci/travis/pyenv-wheel.sh
136
+
137
+ - << : *osx-wheels
130
138
osx_image : xcode9.3
131
- before_install :
132
- - brew update
133
- install :
134
- - brew upgrade openssl
135
- - sudo ci/install-ssh2.sh
136
- - sudo -H pip2 install -U delocate twine wheel pip setuptools
137
- - cp /usr/local/lib/libssh2* .
138
- - ls -lh
139
- - pip2 wheel .
139
+ env :
140
+ - PYENV : 3.7.0
141
+ install : skip
140
142
script :
141
- - delocate-listdeps --all *.whl
142
- - delocate-wheel -v *.whl
143
- - delocate-listdeps --all *.whl
144
- - ls -l *.whl
145
- - rm -f *.dylib
146
- - pip2 install --user -v *.whl
147
- - pwd; mkdir temp; cd temp; pwd
148
- - python -c "from ssh2.session import Session; Session()"
149
- - cd ..; pwd
150
- after_success :
151
- - if [[ ! -z "$TRAVIS_TAG" ]]; then
152
- twine upload -u $PYPI_U -p $PYPI_P *.whl;
153
- fi
154
- language : generic
155
- python : skip
143
+ - ./ci/travis/pyenv-wheel.sh
156
144
157
145
- stage : build packages
158
146
env :
0 commit comments