Travis stuff
This commit is contained in:
parent
1200b82838
commit
ebf0dee216
2 changed files with 22 additions and 9 deletions
11
.travis.yml
11
.travis.yml
|
@ -1,6 +1,6 @@
|
||||||
sudo: false
|
os: linux
|
||||||
language: python
|
language: python
|
||||||
dist: xenial
|
dist: focal
|
||||||
python:
|
python:
|
||||||
- "3.6"
|
- "3.6"
|
||||||
- "3.7"
|
- "3.7"
|
||||||
|
@ -9,12 +9,13 @@ python:
|
||||||
services:
|
services:
|
||||||
- postgresql
|
- postgresql
|
||||||
addons:
|
addons:
|
||||||
postgresql: "9.6"
|
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- libgdal-dev
|
- libgdal-dev
|
||||||
- postgresql-9.6-postgis-2.4
|
- postgresql-12-postgis-3
|
||||||
env:
|
env:
|
||||||
|
global:
|
||||||
|
- PGPORT=5432
|
||||||
- UMAP_SETTINGS=umap/tests/settings.py
|
- UMAP_SETTINGS=umap/tests/settings.py
|
||||||
install:
|
install:
|
||||||
- pip install .
|
- pip install .
|
||||||
|
@ -23,7 +24,7 @@ script: make test
|
||||||
notifications:
|
notifications:
|
||||||
irc:
|
irc:
|
||||||
channels:
|
channels:
|
||||||
- "irc.freenode.net#umap"
|
- "irc.libera.chat#umap"
|
||||||
on_success: change
|
on_success: change
|
||||||
on_failure: always
|
on_failure: always
|
||||||
email: false
|
email: false
|
||||||
|
|
|
@ -1,4 +1,16 @@
|
||||||
|
import os
|
||||||
|
|
||||||
from umap.settings.base import * # pylint: disable=W0614,W0401
|
from umap.settings.base import * # pylint: disable=W0614,W0401
|
||||||
|
|
||||||
SECRET_KEY = 'justfortests'
|
SECRET_KEY = "justfortests"
|
||||||
COMPRESS_ENABLED = False
|
COMPRESS_ENABLED = False
|
||||||
|
|
||||||
|
if "TRAVIS" in os.environ:
|
||||||
|
DATABASES = {
|
||||||
|
"default": {
|
||||||
|
"ENGINE": "django.contrib.gis.db.backends.postgis",
|
||||||
|
"NAME": "umap",
|
||||||
|
"PORT": 5433,
|
||||||
|
"USER": "travis",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue