0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

travisの設定ファイルにSlackとCoverallsのトークンを暗号化して保存するときのメモ

Posted at

トークンをそのまま .travis.yml に記述することもできるが、github等で共有するときにトークンが見えたら困るので暗号化する。

##travisツールを入れる

gem install travis

##coveralls用トークンを追加

travis -r [githubアカウント名]/[レポジトリ名] encrypt COVERALLS_REPO_TOKEN="[coverallsのトークン]" --add env.global

##Slack用トークンを追加

encrypt -r [githubアカウント名]/[レポジトリ名] "[Slackドメイン]:[Slackトークン]" --add notifications.slack

これで .travis.yml に暗号化されたトークンが追加される

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?