environment:
  global:
    DATABASE_URL: 'postgresql://postgres@localhost/anyway'
    ANYWAY_DISABLE_CELERY: "1"
  matrix:
    - PYTHON: "C:\\Python36"
    - PYTHON: "C:\\Python27"

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:
  - 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 main.py process united --light
  - python -m pytest -m "not browser" tests

environment:
  global:
    DATABASE_URL: 'postgresql://postgres@localhost/anyway'
    ANYWAY_DISABLE_CELERY: "1"
  matrix:
    - PYTHON: "C:\\Python36"
    - PYTHON: "C:\\Python27"

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:
  - 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

Remove united parser from AppVeyor
Remove united parser from AppVeyor
