@@ -13,69 +13,73 @@ python:
13
13
addons :
14
14
apt :
15
15
packages :
16
- - libssh2-1 -dev
16
+ - libssh -dev
17
17
- openssh-server
18
18
- rpm
19
19
- dpkg
20
+ - cmake
20
21
before_install :
21
22
- pip install -U pip setuptools
22
23
install :
24
+ - sudo ci/install-ssh2.sh
23
25
- pip install -r requirements_dev.txt
24
26
script :
27
+ - export LD_LIBRARY_PATH=/usr/local/lib/x86_64-linux-gnu
25
28
- nosetests --with-coverage --cover-package=pssh
26
29
- flake8 pssh
27
30
- cd doc; make html; cd ..
28
31
after_success :
29
32
- codecov
30
33
jobs :
31
34
include :
32
- - if : tag IS present
35
+ - stage : OSX wheel build
33
36
os : osx
34
- # tag =~ ^\d+\.\d+(\.\d+)?(-\S*)?$
37
+ if : tag IS present
35
38
before_install :
36
39
- brew update
37
40
install :
38
41
- brew install libssh2
39
- - pip install -U delocate twine wheel pip setuptools
40
- - pip install -r requirements.txt
41
- - python setup.py bdist_wheel
42
+ - sudo pip2 install -U delocate twine wheel pip setuptools
43
+ - pip2 install --user -r requirements.txt
44
+ - pip2 wheel .
42
45
script :
43
- - delocate-listdeps --all dist/ *.whl
44
- - delocate-wheel -v dist/ *.whl
45
- - delocate-listdeps --all dist/ *.whl
46
- - ls -l dist/
46
+ - delocate-listdeps --all *.whl
47
+ - delocate-wheel -v *.whl
48
+ - delocate-listdeps --all *.whl
49
+ - ls -l *.whl
47
50
- brew uninstall libssh2
48
- - pip install -v dist/ *.whl
51
+ - pip install -v *.whl
49
52
- pwd; mkdir temp; cd temp; pwd
50
53
- python -c "import pssh.native.ssh2"
51
54
- cd ..; pwd
52
55
after_success :
53
56
- if [[ ! -z "$TRAVIS_TAG" ]]; then
54
- twine upload -u $PYPI_U -p $PYPI_P dist/ *.whl;
57
+ twine upload -u $PYPI_U -p $PYPI_P *.whl;
55
58
fi
56
59
language : generic
57
60
python : skip
58
- - stage : build system packages
59
- if : tag IS present
60
- os : linux
61
- python : 3.6
62
- before_install : skip
63
- install : skip
64
- script : skip
65
- after_success : skip
66
- before_deploy :
67
- - docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
68
- - ./ci/docker/build-packages.sh
69
- deploy :
70
- - provider : releases
71
- skip_cleanup : true
72
- api_key :
73
- secure : hKf+D9ZWRCJWNQtlOWeFh7z1a+VSz+GK5qOY0e1+iV/PrM0f41wy2yej0bxG1zS6CQAnJBK6/gmq5uXXhQhGNQeIQs7zElyKlrijQAn5UstPPJTRIk2oywRr2b+q0k3V42tto6WbhjqPRpOQl/pNTjKJCc/UPgd6kOVZEhCfAec=
74
- file_glob : true
75
- file : ' *.{deb,rpm}'
76
- on :
77
- repo : ParallelSSH/parallel-ssh
78
- tags : true
61
+ # - os: linux
62
+ # stage: build system packages
63
+ # if: tag IS present
64
+ # python: 3.6
65
+ # before_install: skip
66
+ # install: skip
67
+ # # script: skip
68
+ # after_success: skip
69
+ # # before_deploy:
70
+ # script:
71
+ # - docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
72
+ # - ./ci/docker/build-packages.sh
73
+ # deploy:
74
+ # - provider: releases
75
+ # skip_cleanup: true
76
+ # api_key:
77
+ # secure: hKf+D9ZWRCJWNQtlOWeFh7z1a+VSz+GK5qOY0e1+iV/PrM0f41wy2yej0bxG1zS6CQAnJBK6/gmq5uXXhQhGNQeIQs7zElyKlrijQAn5UstPPJTRIk2oywRr2b+q0k3V42tto6WbhjqPRpOQl/pNTjKJCc/UPgd6kOVZEhCfAec=
78
+ # file_glob: true
79
+ # file: '*.{deb,rpm}'
80
+ # on:
81
+ # repo: ParallelSSH/parallel-ssh
82
+ # tags: true
79
83
- stage : deploy pypi sdist
80
84
if : tag IS present
81
85
os : linux
0 commit comments