forked from aio-libs/aiopg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (40 loc) · 1.17 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
language: python
python:
- "3.3"
- "3.4"
- "3.5"
before_install:
- sudo apt-get update
- sudo /etc/init.d/postgresql stop
- sudo apt-get install -y postgresql-contrib-${PG}
- sudo /etc/init.d/postgresql start ${PG}
- sleep 5 # to wait for postgres server start
install:
- python setup.py install
- pip install -r requirements.txt
- test $USE_SA == 1 && pip install sqlalchemy || true
before_script:
- psql -c "create database aiopg;" -U postgres
- psql -c "create user aiopg with password 'passwd';" -U postgres
- psql -c "grant all privileges on database aiopg to aiopg;" -U postgres
- psql -c "create extension hstore;" -U postgres -d aiopg
script:
- make cov
- python setup.py check -rms
#addons:
# postgresql: "9.4"
env:
global:
- PYTHON=python
matrix:
- USE_SA=1 PYTHONASYNCIODEBUG=1 PG=9.3
- USE_SA=0 PYTHONASYNCIODEBUG=1 PG=9.3
- USE_SA=1 PYTHONASYNCIODEBUG=0 PG=9.3
- USE_SA=0 PYTHONASYNCIODEBUG=0 PG=9.3
# - USE_SA=1 PYTHONASYNCIODEBUG=1 PG=9.4
# - USE_SA=0 PYTHONASYNCIODEBUG=1 PG=9.4
# - USE_SA=1 PYTHONASYNCIODEBUG=0 PG=9.4
# - USE_SA=0 PYTHONASYNCIODEBUG=0 PG=9.4
cache: apt
after_script:
- coveralls