forked from kvesteri/postgresql-audit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (39 loc) · 1.13 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
sudo: required
dist: xenial
before_install:
- wget -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
- sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs 2>/dev/null)-pgdg main" >> /etc/apt/sources.list.d/postgresql.list'
- sudo apt-get update
- sudo /etc/init.d/postgresql stop
- sudo apt-get install postgresql-10 postgresql-client-10
- sudo /etc/init.d/postgresql stop
- sudo cp /etc/postgresql/9.6/main/pg_hba.conf /etc/postgresql/10/main/pg_hba.conf
- sudo sed -i 's/port = 5433/port = 5432/' /etc/postgresql/10/main/postgresql.conf
- sudo /etc/init.d/postgresql start $POSTGRESQL_VERSION
before_script:
- psql -c 'create database postgresql_audit_test;' -U postgres
language: python
python:
- 2.7
- 3.5
- 3.6
- 3.7
- 3.8
env:
global:
- TOXENV='py-sqla{1.1,1.2,1.3}'
matrix:
- POSTGRESQL_VERSION=9.4
- POSTGRESQL_VERSION=9.5
- POSTGRESQL_VERSION=9.6
- POSTGRESQL_VERSION=10
- POSTGRESQL_VERSION=11
- POSTGRESQL_VERSION=12
matrix:
include:
- python: 3.7
env: TOXENV='lint'
install:
- pip install tox
script:
- tox