.travis.yml2

language: ruby
rvm: 1.9.3

env:
  global:
    - RAILS_ENV=document
    - secure: "hogehoge"

branches:
  except: /^(feature|try).*$/

branches:
  only:
    - master
    - develop

before_install:
  - eval `ssh-agent -s`
  - chmod 600 ~/.ssh/config
  - openssl aes-256-cbc -K $encrypted_XXX_key -iv $encrypted_xxx_iv -in .travis/travis_key.enc -out travis_key -d
  - cp travis_key ~/.ssh/
  - chmod 600 ~/.ssh/travis_key
  - ssh-add ~/.ssh/travis_key

after_success: .travis/after_success.sh
after_failure: .travis/after_failure.sh 

なるほどー