language: python
python:
  - "3.4"
  - "3.5"
addons:
  postgresql: "9.4"
  apt:
    packages:
      - language-pack-de
      - python3-psycopg2
services:
  - redis-server
install:
  - "pip install Pillow"
before_script:
  - psql -U postgres -c "CREATE DATABASE byceps_test;"
  - psql -U postgres -c "CREATE ROLE byceps_test WITH LOGIN PASSWORD 'test';"
script:
  - "cd webapp"
  - "python setup.py test"
sudo: false
notifications:
  email: false

language: python
python:
  - "3.4"
  - "3.5"
addons:
  postgresql: "9.4"
  apt:
    packages:
      - language-pack-de
services:
  - redis-server
install:
  - "pip install Pillow psycopg2"
before_script:
  - psql -U postgres -c "CREATE DATABASE byceps_test;"
  - psql -U postgres -c "CREATE ROLE byceps_test WITH LOGIN PASSWORD 'test';"
script:
  - "cd webapp"
  - "python setup.py test"
sudo: false
notifications:
  email: false

Install psycopg2 on Travis CI via pip instead of apt because even if the virtual environment is set up to use system packages, they would be only available for Python 2.7 but not Python 3.
Install psycopg2 on Travis CI via pip instead of apt because even if the virtual environment is set up to use system packages, they would be only available for Python 2.7 but not Python 3.
