language: python
python:
  - '2.7'
services:
  - elasticsearch
before_script:
  - sleep 10
env:
  - DATABASE_URL=postgres://postgres@localhost:5432/postgres
install:
  - "pip install 'tox>=2.0.2,<3.0.0'"
  - pip install coveralls
script: 
  - tox
after_success: coveralls
deploy:
  provider: heroku
  strategy: git
  api_key:
    secure: CGv5mHV8SFnFkdwpRl2EGRU5kvnl7xfxZPgl5DvqJHZ6xBreDpGFQOyQDVVqRAt7s9Dq/JD8qMCvm15rVRdXN9rKMDFV9ilPiR2dTBPs5rzE+upA/W2N2+pkQrnXEP+80EF3Wy3ODUAUb4aUlCwG1NqZCWnn4NzuZNCtAYEqwuk=
  app:
    master: lore-ci
    release: lore-release
  run:
    - "sleep 15"
    - "python manage.py migrate --noinput"
    - "python manage.py update_index"
    - "python manage.py sync_permissions"

language: python
python:
  - '2.7'
services:
  - elasticsearch
before_script:
  - sleep 10
env:
  - DATABASE_URL=postgres://postgres@localhost:5432/postgres
install:
  - "pip install 'tox>=2.0.2,<3.0.0'"
  - pip install coveralls
script: 
  - tox
after_success: coveralls
deploy:
  provider: heroku
  api_key:
    secure: CGv5mHV8SFnFkdwpRl2EGRU5kvnl7xfxZPgl5DvqJHZ6xBreDpGFQOyQDVVqRAt7s9Dq/JD8qMCvm15rVRdXN9rKMDFV9ilPiR2dTBPs5rzE+upA/W2N2+pkQrnXEP+80EF3Wy3ODUAUb4aUlCwG1NqZCWnn4NzuZNCtAYEqwuk=
  app:
    master: lore-ci
    release: lore-release
  run:
    - "sleep 15"
    - "python manage.py migrate --noinput"
    - "python manage.py update_index --verbosity=0"
    - "python manage.py sync_permissions"

Fix deployment issues with Travis - Reverted to default API deployment - Changed verbosity of index update management command to 0
Fix deployment issues with Travis
- Reverted to default API deployment
- Changed verbosity of index update management command to 0
