Browse files

Install ~/.erlang.cookie owned by the CI user

  • Loading branch information...
1 parent 9e8d5c8 commit 667eaeaecfc9b07b450b81193c2bf42e5541fd2d @michaelklishin michaelklishin committed Jan 20, 2013
Showing with 9 additions and 0 deletions.
  1. +1 −0 ci_environment/kerl/files/default/erlang.cookie
  2. +8 −0 ci_environment/kerl/recipes/source.rb
View
1 ci_environment/kerl/files/default/erlang.cookie
@@ -0,0 +1 @@
+travis
View
8 ci_environment/kerl/recipes/source.rb
@@ -67,6 +67,14 @@
subscribes :run, resources(:remote_file => node.kerl.path)
end
+cookbook_file "#{node.travis_build_environment.home}/.erlang.cookie" do
+ owner node.travis_build_environment.user
+ group node.travis_build_environment.group
+ mode 0755
+
+ source "erlang.cookie"
+end
+
node.kerl.releases.each do |rel, build|
execute "build Erlang #{rel}" do

0 comments on commit 667eaea

Please sign in to comment.