language: ruby
rvm:
  - 2.3.1
addons:
  postgresql: 9.4
  firefox: 47.0.1
services:
  - postgresql

env: 
  SECRET_KEY_BASE="$(bundle exec rake secret)"
  DEVISE_SECRET_KEY="$(bundle exec rake secret)"

before_script:
  - /bin/cp $TRAVIS_BUILD_DIR/config/database.example.yml $TRAVIS_BUILD_DIR/config/database.yml
  - /bin/cp $TRAVIS_BUILD_DIR/config/smtp.example.yml $TRAVIS_BUILD_DIR/config/smtp.yml
  - psql -c 'create database ifme_test;' -U postgres
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

script:
  - bundle exec rake travis

deploy:
  provider: heroku
  api_key:
    secure: xxxxx
  app: ifme
  on:
    repo: julianguyen/ifme
  run:
    - "rake db:migrate"
    - restart

language: ruby
rvm:
  - 2.3.1
addons:
  postgresql: 9.4
  firefox: 47.0.1
services:
  - postgresql

env: 
  SECRET_KEY_BASE="$(bundle exec rake secret)"
  DEVISE_SECRET_KEY="$(bundle exec rake secret)"

before_script:
  - /bin/cp $TRAVIS_BUILD_DIR/config/database.example.yml $TRAVIS_BUILD_DIR/config/database.yml
  - /bin/cp $TRAVIS_BUILD_DIR/config/smtp.example.yml $TRAVIS_BUILD_DIR/config/smtp.yml
  - psql -c 'create database ifme_test;' -U postgres
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

script:
  - bundle exec rake travis

deploy:
  provider: heroku
  api_key:
    secure: ZpqbGq3JS2Lni9CIyAZvHtv69TmW33vP0q3bwxLKuEYiYA83xd8DypWgdQvImm7Lk39AFFXuMaMKh6RP5tFHUmFMtqRHIzYCGjZdKNRZ+HyKXXJJXomUFGbQp320cKvguXwpe6f6nYeCMzhMeAEN49IcU0mlFqYXYI8Fkr0fVc0=
  app: ifme
  on:
    repo: julianguyen/ifme
  run:
    - "rake db:migrate"
    - restart

Add secret key to automatic deploys :tropical_drink:
Add secret key to automatic deploys :tropical_drink:
