-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (33 loc) · 1.11 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
sudo: required
language: python
python:
- 2.7
services:
- docker
env:
- POSTGRES_PORT=15432
before_install:
- sudo apt-get update
- sudo apt-get install -y python-dev libpq-dev docker.io
- docker build -t pgclient/system_test pgclient/system_test
- docker build -t pgclient/system_test_pg90 -f pgclient/system_test/Dockerfile.pg90 pgclient/system_test
- sudo service docker restart ; sleep 10
- docker run --name pgclient_system_test --privileged -d -p "0.0.0.0:15432:5432" -e POSTGRES_PASSWORD=test pgclient/system_test
- docker run --name pgclient_system_test_pg90 --privileged -d -p "0.0.0.0:54390:5432" -e POSTGRES_PASSWORD=test pgclient/system_test_pg90
- sleep 20
- docker ps -a
- docker logs pgclient_system_test
- docker logs pgclient_system_test_pg90
- sudo netstat -ntlp
install:
- pip install coveralls
script:
- make test
- make system_test
# Run tests on postgres:9.0
- export POSTGRES_PORT=54390
- make system_test
after_success:
- coveralls
- docker stop pgclient_system_test pgclient_system_test_pg90
- docker rm pgclient_system_test pgclient_system_test_pg90