title: How to input heroku credentials in Travis Ruby on Rails
body: <p>Am working Ruby on Rails site, and I have implemented Travis CI with it and pushed to to GitHub, so as to Test my build before pushing to Heroku. </p>
  
  <p>When Travis parsed my github source code, I get an error asking me to input my <code>Heroku Credentials</code> before Travis can push to Heroku.</p>
  
  <p><strong>What I want to do</strong></p>
  
  <blockquote>
    <p>How do I pass in my heroku credentials to Travis as requested without the >risk of putting it on version control?</p>
  </blockquote>
  
  <p>Here is the Build on Travis: <a href="https://travis-ci.org/AfolabiOlaoluwa/LawVille/jobs/166099588" rel="nofollow">https://travis-ci.org/AfolabiOlaoluwa/LawVille/jobs/166099588</a></p>
  
  <p><strong>.travis.yml</strong></p>
  
  <pre><code>language: ruby 
  rvm:
  - 2.2.4
  env:
    global:
    - secure: {{ I have my travis encrypted key here }}
    - secure: {{ I another travis encrypted key here }}
    - DB=sqlite
    - DB=mysql
    - DB=postgresql
    - secure: {{ I have another travis encrypted key here }}
  deploy:
    provider: heroku
    api_key:
      secure: {{ I have HEROKU API KEY encrypted by travis here  }}
  script:
  - RAILS_ENV=test bundle exec rake db:migrate --trace
  - bundle exec rake db:test:prepare
  before_script:
  - mysql -e 'create database strano_test'
  - psql -c 'create database strano_test' -U postgres
  after_success:
  - gem install heroku
  - yes | ruby ./config/initializers/travis_deployer.rb
  - git remote add heroku git@heroku.com:lawville.git
  - heroku keys:clear
  - yes | heroku keys:add
  - git push heroku master
  </code></pre>