language: python
services:
- postgresql
env:
- DATABASE_URL='postgres://postgres:@localhost:5432/compshop_test' DJANGO_SETTINGS_MODULE='settings.test'
python:
- '3.4'
addons:
  postgresql: '9.4'
install:
- pip install -r requirements/testing.txt
- pip install coveralls
before_script:
- psql -c 'create database compshop_test;' -U postgres
- python manage.py migrate --noinput
- python manage.py collectstatic --noinput
script:
- make test
after_success: coveralls
deploy:
  provider: heroku
  api_key:
    secure: Fp7JgWeZl3mLC+wyClmugKPK5Ih7sDLgsNHf1t35FxZmB0KyKMOPZQeI0VeezWtETJbpVOOJa565mAsiZESrPE7kqxaIWM0USqZf3cijwtw3HSsbABnTnwDBfKySERjPY2DamRwQ/+HAuUhH4RzRVMTk/KDWEWuSKbhmqxAYDXA=
  app: comptronics
  on:
    repo: kevgathuku/compshop
    branch: develop
  run: "python manage.py migrate"

language: python
services:
- postgresql
env:
- DATABASE_URL='postgres://postgres:@localhost:5432/compshop_test' DJANGO_SETTINGS_MODULE='settings.test'
python:
- '3.4'
addons:
  postgresql: '9.4'
install:
- pip install -r requirements/testing.txt
- pip install coveralls
before_script:
- psql -c 'create database compshop_test;' -U postgres
- python manage.py migrate --noinput
- python manage.py collectstatic --noinput
script:
- make test
after_success: coveralls
deploy:
  provider: heroku
  api_key:
    secure: ngDA1ESWauXycQAUoIEqwh4nztCfpNHlarK2En4oppg/YOv3bSECPd5JI+UXe07PhIiXkWRKvWbae3qzwCbta4PismdgxXZB0eSuaFjUiz8M7bjBfQwJg7DospNXTvurXvYIMpKculzDDr0HzdH4yWbfYp55lIfMyT5BPMVWzEY=
  app: comptronics
  on:
    repo: kevgathuku/compshop
    branch: develop
  run: python manage.py migrate

Fix heroku credentials and run command
Fix heroku credentials and run command
