Skip to content

Commit

Permalink
Add tasks for obtaining secret token for travis-ci.com
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmo0920 committed Apr 9, 2020
1 parent cc14912 commit be018f8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,17 @@ end
].each do |params|
define_bulked_task(*params)
end

namespace :travis do
desc "login to travis-ci.com"
task :login do
sh("travis", "login", "--com")
end

desc "encrypt GitHub token"
task :encrypt_token do
abort("GITHUB_TOKEN must not empty") if ENV["GITHUB_TOKEN"].empty?

sh("travis", "encrypt", "--com", ENV["GITHUB_TOKEN"])
end
end

0 comments on commit be018f8

Please sign in to comment.