-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.travis.yml
More file actions
32 lines (28 loc) · 913 Bytes
/
.travis.yml
File metadata and controls
32 lines (28 loc) · 913 Bytes
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
dist: xenial
group: edge
language: python
python:
- "3.8"
- "3.7"
- "3.6"
env:
- TOXENV=django22
- TOXENV=coverage
sudo: true # Allow the sudo command
before_install:
- sudo apt-get update
- sudo apt-get --yes remove postgresql\*
- sudo apt-get install -y postgresql-12 postgresql-client-12 postgresql-12-postgis-2.5 postgresql-12-postgis-2.5-scripts
- sudo sed -i 's/port = 5433/port = 5432/' /etc/postgresql/12/main/postgresql.conf
- sudo cp /etc/postgresql/{9.6,12}/main/pg_hba.conf
- sudo cp /etc/postgresql/{10,12}/main/pg_hba.conf
- sudo service postgresql restart 12
install:
- pip install tox
before_script:
- psql -c 'CREATE ROLE travis SUPERUSER LOGIN CREATEDB;' -U postgres
- psql -c 'CREATE DATABASE tablo;' -U postgres
- psql -c 'CREATE EXTENSION postgis;' -U postgres -d tablo
- psql -c 'CREATE EXTENSION postgis_topology;' -U postgres -d tablo
script:
- tox