-
Notifications
You must be signed in to change notification settings - Fork 25
/
.travis.yml
74 lines (63 loc) · 3.09 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
language: python
python:
- 2.6
- 2.7
- 3.5
# - pypy
env:
- TXPOSTGRES_TEST_HOST=127.0.0.1 TXPOSTGRES_TEST_USER=postgres REACTOR=default
- TXPOSTGRES_TEST_HOST=127.0.0.1 TXPOSTGRES_TEST_USER=postgres REACTOR=select
- TXPOSTGRES_TEST_HOST=127.0.0.1 TXPOSTGRES_TEST_USER=postgres REACTOR=poll
- TXPOSTGRES_TEST_HOST=127.0.0.1 TXPOSTGRES_TEST_USER=postgres REACTOR=epoll
# it's a pain to install gobject and pygtk in a virtualenv, so don't bother
# - TXPOSTGRES_TEST_HOST=127.0.0.1 TXPOSTGRES_TEST_USER=postgres REACTOR=gtk2
# only check all four reactors on 2.7
matrix:
exclude:
- python: 2.6
env: TXPOSTGRES_TEST_HOST=127.0.0.1 TXPOSTGRES_TEST_USER=postgres REACTOR=select
- python: 2.6
env: TXPOSTGRES_TEST_HOST=127.0.0.1 TXPOSTGRES_TEST_USER=postgres REACTOR=poll
- python: 2.6
env: TXPOSTGRES_TEST_HOST=127.0.0.1 TXPOSTGRES_TEST_USER=postgres REACTOR=epoll
- python: 2.6
env: TXPOSTGRES_TEST_HOST=127.0.0.1 TXPOSTGRES_TEST_USER=postgres REACTOR=gtk2
- python: 2.7
env: TXPOSTGRES_TEST_HOST=127.0.0.1 TXPOSTGRES_TEST_USER=postgres REACTOR=default
# "file descriptor cannot be a negative integer" are back,
# disable tests with select temporarily
- python: 2.7
env: TXPOSTGRES_TEST_HOST=127.0.0.1 TXPOSTGRES_TEST_USER=postgres REACTOR=select
- python: 3.5
env: TXPOSTGRES_TEST_HOST=127.0.0.1 TXPOSTGRES_TEST_USER=postgres REACTOR=select
- python: 3.5
env: TXPOSTGRES_TEST_HOST=127.0.0.1 TXPOSTGRES_TEST_USER=postgres REACTOR=poll
- python: 3.5
env: TXPOSTGRES_TEST_HOST=127.0.0.1 TXPOSTGRES_TEST_USER=postgres REACTOR=epoll
- python: 3.5
env: TXPOSTGRES_TEST_HOST=127.0.0.1 TXPOSTGRES_TEST_USER=postgres REACTOR=gtk2
- python: pypy
env: TXPOSTGRES_TEST_HOST=127.0.0.1 TXPOSTGRES_TEST_USER=postgres REACTOR=select
- python: pypy
env: TXPOSTGRES_TEST_HOST=127.0.0.1 TXPOSTGRES_TEST_USER=postgres REACTOR=poll
- python: pypy
env: TXPOSTGRES_TEST_HOST=127.0.0.1 TXPOSTGRES_TEST_USER=postgres REACTOR=epoll
- python: pypy
env: TXPOSTGRES_TEST_HOST=127.0.0.1 TXPOSTGRES_TEST_USER=postgres REACTOR=gtk2
# only need psycopg2ct on PyPy, the rest gets normal psycopg2
# use zope.interface 3.8.0 since the latest version dropped Python 2.5 support
# use Twisted 15.3.0 on Python 2.6 since 15.4.0 dropped support
install:
- sudo apt-get install libpq-dev
- test "$TRAVIS_PYTHON_VERSION" == "pypy" && pip install psycopg2ct --use-mirrors || true
- test "$TRAVIS_PYTHON_VERSION" != "pypy" && pip install psycopg2 --use-mirrors || true
- pip install zope.interface==3.8.0 --use-mirrors
- test "$TRAVIS_PYTHON_VERSION" == "2.6" && pip install twisted==15.3.0 --use-mirrors || true
- test "$TRAVIS_PYTHON_VERSION" != "2.6" && pip install twisted --use-mirrors || true
before_script:
- psql -U postgres -c 'create database twisted_test'
# in Travis, the Python 3.5 Twisted install doesn't work with --reactor=XXX, so just run plain `trial test`
script: test "$TRAVIS_PYTHON_VERSION" != "3.5" && trial --reactor=$REACTOR test || trial test
notifications:
email: