forked from data-for-change/anyway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
33 lines (29 loc) · 1.21 KB
/
.appveyor.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
environment:
global:
DATABASE_URL: 'postgresql://postgres@localhost/anyway'
POSTGIS_FILE: postgis-bundle-pg96-2.4.0x64
matrix:
- PYTHON: "C:\\Python36"
services:
- postgresql
init:
- ps: |
Set-Content "c:\program files\postgresql\9.6\data\pg_hba.conf" "host all all ::1/128 trust"
Add-Content "c:\program files\postgresql\9.6\data\pg_hba.conf" "host all all 127.0.0.1/32 trust"
$env:PATH += ";c:\program files\postgresql\9.6\bin"
$env:PATH = "$env:Python;$env:Python\Scripts;$env:PATH"
install:
- curl -f -L -O -S -s http://download.osgeo.org/postgis/windows/pg96/archive/%POSTGIS_FILE%.zip
- 7z x %POSTGIS_FILE%.zip
- xcopy /e /y /q %POSTGIS_FILE% "c:\program files\postgresql\9.6"
- python --version
- python -m pip install -U --no-cache-dir pip wheel
- python -m pip install --no-cache-dir -r requirements.txt -r test_requirements.txt
build: off
test_script:
- psql -U postgres -c "CREATE ROLE appveyor LOGIN SUPERUSER CREATEDB CREATEROLE;"
- createdb anyway
- alembic upgrade head
- python main.py process registered-vehicles
- python main.py process cbs
- python -m pytest -m "not browser" tests