language: python
python:
- '2.7'
cache: pip
services:
- postgresql
install:
- ./scripts/bootstrap.sh
- pip install coveralls
script:
- eval $INTEGRITY_SCRIPT
- ./scripts/run_tests.sh
after_success:
- coveralls
before_deploy:
- openssl aes-256-cbc -K $encrypted_cc02c135ea1a_key -iv $encrypted_cc02c135ea1a_iv
  -in travis_rsa.enc -out travis_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 travis_rsa
- ssh-add travis_rsa
deploy:
  - provider: script
    skip_cleanup: true
    script: ./scripts/deploy.sh preview
    on:
      branch: master
  - provider: script
    skip_cleanup: true
    script: ./scripts/deploy.sh development
    on:
      branch: test-deploy
  - provider: script
    skip_cleanup: true
    script: ./scripts/deploy.sh live
    on:
      branch: live-deploy

language: python
python:
- '2.7'
cache: pip
services:
- postgresql
install:
- ./scripts/bootstrap.sh
- pip install coveralls
script:
- eval $INTEGRITY_SCRIPT
- ./scripts/run_tests.sh
after_success:
- coveralls
before_deploy:
- openssl aes-256-cbc -K $encrypted_cc02c135ea1a_key -iv $encrypted_cc02c135ea1a_iv
  -in travis_rsa.enc -out travis_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 travis_rsa
- ssh-add travis_rsa
deploy:
  - provider: script
    skip_cleanup: true
    script: ./scripts/deploy.sh preview
    on:
      branch: master
  - provider: script
    skip_cleanup: true
    script: ./scripts/deploy.sh development
    on:
      branch: test-deploy
  - provider: script
    skip_cleanup: true
    script: ./scripts/deploy.sh live
    on:
      tags: true

Deploy to live on release tag
Deploy to live on release tag
