forked from tomerfiliba-org/rpyc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (38 loc) · 1.62 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
language: python
dist: trusty
# See: https://docs.travis-ci.com/user/languages/python/
# and: https://docs.travis-ci.com/user/customizing-the-build/
matrix:
include:
- {python: "2.6", env: SKIP_GEVENT=true SKIP_DEPLOY=true}
- {python: "2.7", env: SKIP_GEVENT=true }
- {python: "3.3", env: SKIP_GEVENT=true SKIP_DEPLOY=true}
- {python: "3.4", env: }
- {python: "3.5", env: SKIP_DEPLOY=true}
- {python: "3.6", env: SKIP_DEPLOY=true}
- {python: "3.7", env: SKIP_GEVENT=true SKIP_DEPLOY=true,
dist: xenial, sudo: true}
- {python: "nightly", env: SKIP_GEVENT=true SKIP_DEPLOY=true,
dist: xenial, sudo: true}
install:
- python setup.py install
- "pip install gevent || [[ -n $SKIP_GEVENT ]]"
- "pip install paramiko || [[ -n $SKIP_DEPLOY ]]"
before_script:
- "echo NoHostAuthenticationForLocalhost yes >> ~/.ssh/config"
- "echo StrictHostKeyChecking no >> ~/.ssh/config"
- "ssh-keygen -q -f ~/.ssh/id_rsa -N ''"
- "cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys"
- "uname -a"
- "hostname"
- "cd tests"
script:
- nosetests -vv -I test_deploy -I test_gevent_server
# need to run in its own python interpreter (`monkey.patch_all()`):
- "python test_gevent_server.py || [[ -n $SKIP_GEVENT ]]"
# it currently fails on all but the native python versions on travis:
- "python test_deploy.py || [[ -n $SKIP_DEPLOY ]]"
notifications:
email:
on_success: change
on_failure: change