43
43
- brew install libssh2
44
44
- sudo pip2 install -U delocate twine wheel pip setuptools
45
45
- pip2 install --user -r requirements.txt
46
- - pip2 wheel .
46
+ - pip2 wheel --no-deps .
47
47
script :
48
48
- delocate-listdeps --all *.whl
49
49
- delocate-wheel -v *.whl
60
60
fi
61
61
language : generic
62
62
python : skip
63
+ - stage : OSX wheel build
64
+ os : osx
65
+ osx_image : xcode8
66
+ if : tag IS present
67
+ before_install :
68
+ - brew update
69
+ install :
70
+ - brew install libssh2
71
+ - sudo pip2 install -U delocate twine wheel pip setuptools
72
+ - pip2 install --user -r requirements.txt
73
+ - pip2 wheel --no-deps .
74
+ script :
75
+ - delocate-listdeps --all *.whl
76
+ - delocate-wheel -v *.whl
77
+ - delocate-listdeps --all *.whl
78
+ - ls -l *.whl
79
+ - brew uninstall libssh2
80
+ - pip2 install --user -v *.whl
81
+ - pwd; mkdir temp; cd temp; pwd
82
+ - python -c "import pssh.pssh2_client"
83
+ - cd ..; pwd
84
+ after_success :
85
+ - if [[ ! -z "$TRAVIS_TAG" ]]; then
86
+ twine upload -u $PYPI_U -p $PYPI_P *.whl;
87
+ fi
88
+ language : generic
89
+ python : skip
90
+ - stage : OSX wheel build
91
+ os : osx
92
+ osx_image : xcode6.4
93
+ if : tag IS present
94
+ before_install :
95
+ - brew update
96
+ install :
97
+ - brew install libssh2
98
+ - wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py
99
+ - sudo python get-pip.py
100
+ - sudo pip install -U pip
101
+ - sudo pip install -U delocate twine wheel pip setuptools
102
+ - pip install --user -r requirements.txt
103
+ - pip wheel --no-deps .
104
+ script :
105
+ - delocate-listdeps --all *.whl
106
+ - delocate-wheel -v *.whl
107
+ - delocate-listdeps --all *.whl
108
+ - ls -l *.whl
109
+ - brew uninstall libssh2
110
+ - pip install --user -v *.whl
111
+ - pwd; mkdir temp; cd temp; pwd
112
+ - python -c "import pssh.pssh2_client"
113
+ - cd ..; pwd
114
+ after_success :
115
+ - if [[ ! -z "$TRAVIS_TAG" ]]; then
116
+ twine upload -u $PYPI_U -p $PYPI_P *.whl;
117
+ fi
118
+ language : generic
119
+ python : skip
63
120
# - os: linux
64
121
# stage: build system packages
65
122
# if: tag IS present
@@ -82,13 +139,20 @@ jobs:
82
139
# on:
83
140
# repo: ParallelSSH/parallel-ssh
84
141
# tags: true
85
- - stage : deploy pypi sdist
142
+ - stage : build and deploy source and wheels
86
143
if : tag IS present
87
144
os : linux
88
145
python : 3.6
89
146
before_install : skip
90
- install : skip
91
- script : skip
147
+ install :
148
+ - pip install twine
149
+ script :
150
+ - docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" &&
151
+ ./ci/travis/build-manylinux.sh;
152
+ after_success :
153
+ - if [[ ! -z "$TRAVIS_TAG" ]]; then
154
+ twine upload -u $PYPI_U -p $PYPI_P wheelhouse/*.whl;
155
+ fi
92
156
deploy :
93
157
- provider : pypi
94
158
user : pkittenis
@@ -100,17 +164,3 @@ jobs:
100
164
distributions : sdist
101
165
skip_upload_docs : true
102
166
skip_cleanup : true
103
- - stage : build and deploy wheels
104
- if : tag IS present
105
- os : linux
106
- python : 3.6
107
- before_install : skip
108
- install :
109
- - pip install twine
110
- script :
111
- - docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" &&
112
- ./ci/travis/build-manylinux.sh;
113
- after_success :
114
- - if [[ ! -z "$TRAVIS_TAG" ]]; then
115
- twine upload -u $PYPI_U -p $PYPI_P wheelhouse/*.whl;
116
- fi
0 commit comments