-
-
Notifications
You must be signed in to change notification settings - Fork 215
Expand file tree
/
Copy path.travis.yml
More file actions
58 lines (50 loc) · 1.74 KB
/
.travis.yml
File metadata and controls
58 lines (50 loc) · 1.74 KB
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
dist: focal
language: python
cache: pip
notifications:
# will post a summary as comment on github in case of failure
webhooks: https://www.travisbuddy.com/
on_success: never
addons:
postgresql: "12"
apt:
packages:
- postgresql-12-postgis-3
services:
- postgresql
matrix:
include:
- { python: "3.6", env: TOXENV=py36-django21 }
- { python: "3.7", env: TOXENV=py37-django21 }
- { python: "3.6", env: TOXENV=py36-django22 }
- { python: "3.7", env: TOXENV=py37-django22 }
- { python: "3.6", env: TOXENV=py36-django30 }
- { python: "3.7", env: TOXENV=py37-django30 }
- { python: "3.6", env: TOXENV=py36-django31 }
- { python: "3.7", env: TOXENV=py37-django31 }
- { python: "3.8", env: TOXENV=py38-django30 }
- { python: "3.8", env: TOXENV=py38-django31 }
branches:
only:
- master
before_install:
- sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable -y
- sudo apt-get update -q
- sudo apt-get install binutils libproj-dev gdal-bin -y
- sudo sed -i 's/port = 5433/port = 5432/' /etc/postgresql/12/main/postgresql.conf
- sudo sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/12/main/pg_hba.conf
- sudo systemctl restart postgresql@12-main
- sudo cat /var/log/postgresql/postgresql-12-main.log
- pip install -U pip setuptools wheel
- pip install -U -r requirements-test.txt
install:
- pip install tox
- pip install docutils pygments # for setup.py check -r -s
before_script:
- createdb django_restframework_gis
- psql -U postgres -d django_restframework_gis -c "CREATE EXTENSION postgis;"
script:
# check is done here to allow travisbuddy to include summary in case of failure
- ./run-qa-checks
- tox -e travis
- python setup.py check -r -s