Travis ci with Secure Environment variable

Install travis


gem install travis


travis login --pro --github-token {GITHUBTOKEN}

Generate github token goto


https://github.com/settings/tokens


For private projects:

  • user:email (read-only)
  • read:org (read-only)
  • repo

for open source projects:

  • user:email (read-only)
  • read:org (read-only)
  • repo_deployment
  • repo:status
  • write:repo_hook



travis encrypt SENTRY_DSN="get from sentry" --add