language: python

python:
  - 3.4.3

services:
  - postgresql

install:
  - pip install -r requirements/test-requirements.txt

before_script:
  - npm install -g bower
  - cp sapl/.env_test sapl/.env
  - psql -c "CREATE USER sapl WITH PASSWORD 'sapl'" -U postgres;
  - psql -c "CREATE DATABASE sapl OWNER sapl;" -U postgres

script:
  - ./manage.py migrate
  - ./manage.py bower install
  - py.test --create-db
  # - ./test_and_check_qa.sh