forked from ParallelSSH/ssh2-python
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
84 lines (79 loc) · 1.86 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
language: python
cache:
- pip
- directories:
- "$HOME/.pyenv"
- "$HOME/Library/Caches/Homebrew"
- "$HOME/.git/lfs"
notifications:
email: false
python:
- 2.7
install:
- pip install flake8 jinja2 sphinx sphinx_rtd_theme
- python setup.py build_ext --inplace
- eval "$(ssh-agent -s)"
script:
- pytest tests
- flake8 ssh2
# Test source distribution builds
- python setup.py sdist
- cd dist
- pip install *
- python -c 'from ssh2.session import Session; Session()'
- cd ..
- cd doc
- make html
- cd ..
sudo: required
dist: xenial
services:
- docker
addons:
apt:
packages:
- openssh-server
- rpm
- dpkg
- cmake
jobs:
include:
- stage: test
# - &osx-wheels
# stage: build packages
# if: tag IS present
# os: osx
# osx_image: xcode11.6
# env:
# - SYSTEM_LIBSSH2: 1
# before_install:
# - brew install libssh2
# - pip3 install twine
# - which twine
# install: skip
# script:
# - ./ci/osx-wheel.sh
# after_success:
# - if [[ ! -z "$TRAVIS_TAG" ]]; then
# twine upload --skip-existing -u $PYPI_U -p $PYPI_P wheels/*.whl;
# fi
# language: generic
# python: skip
# - <<: *osx-wheels
# osx_image: xcode11.3
# - stage: build packages
# if: tag IS present
# os: linux
# python: 3.6
# env:
# - WHEELS=1
# install:
# - pip install twine
# script:
# - if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"; fi
# - ./ci/travis/build-manylinux.sh
# - python setup.py sdist
# after_success:
# - if [[ ! -z "$TRAVIS_TAG" ]]; then
# twine upload --skip-existing -u $PYPI_U -p $PYPI_P wheelhouse/*.whl dist/*;
# fi