version: '{build}'

platform:
  - x64

services:
  - postgresql

shallow_clone: true

cache:
  - node_modules

environment:
  MERKEL_DB: postgres://postgres:Password12!@localhost:5432/merkel_test
  PGPASSWORD: Password12!

install:
  - ps: Install-Product node $env:NODE_VERSION x64
  - npm install
  - node_modules\.bin\typings install

build_script:
  - npm run build

before_test:
  - echo Password12! | psql -c 'CREATE DATABASE merkel_test;' -U postgres

test_script:
  - npm test

version: '{build}'

platform:
  - x64

services:
  - postgresql

shallow_clone: true

cache:
  - node_modules

environment:
  MERKEL_DB: postgres://postgres:Password12!@localhost:5432/merkel_test
  PGPASSWORD: Password12!

install:
  - ps: Install-Product node $env:NODE_VERSION x64
  - npm install
  - node_modules\.bin\typings install

build_script:
  - npm run build

before_test:
  - "C:\Program Files\PostgreSQL\9.3\bin\psql -c 'CREATE DATABASE merkel_test;' -U postgres"

test_script:
  - npm test

Fix database setup in AppVeyor
Fix database setup in AppVeyor
