Skip to content

Commit

Permalink
[CI] Set HAB_LICENSE=accept-no-persist in nightly A1 tests
Browse files Browse the repository at this point in the history
The most recent habitat now requires license acceptance.

See also: #207

Signed-off-by: Steven Danna <[email protected]>
  • Loading branch information
stevendanna committed May 14, 2019
1 parent b0f6ed9 commit 8c42452
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
11 changes: 8 additions & 3 deletions components/automate-deployment/a1-migration/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,17 @@
end

execute "tar --strip=1 -xvf #{hab_zip_path} -C #{Chef::Config[:file_cache_path]}"
execute "#{Chef::Config[:file_cache_path]}/hab pkg install core/hab"
execute "#{Chef::Config[:file_cache_path]}/hab pkg binlink core/hab hab"

execute "#{Chef::Config[:file_cache_path]}/hab pkg install core/hab" do
environment({"HAB_LICENSE" => "accept-no-persist"})
end

execute "#{Chef::Config[:file_cache_path]}/hab pkg binlink core/hab hab" do
environment({"HAB_LICENSE" => "accept-no-persist"})
end

group 'hab'

user 'hab' do
group 'hab'
end

11 changes: 8 additions & 3 deletions components/automate-deployment/basic-a1/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,17 @@
end

execute "tar --strip=1 -xvf #{hab_zip_path} -C #{Chef::Config[:file_cache_path]}"
execute "#{Chef::Config[:file_cache_path]}/hab pkg install core/hab"
execute "#{Chef::Config[:file_cache_path]}/hab pkg binlink core/hab hab"

execute "#{Chef::Config[:file_cache_path]}/hab pkg install core/hab" do
environment({"HAB_LICENSE" => "accept-no-persist"})
end

execute "#{Chef::Config[:file_cache_path]}/hab pkg binlink core/hab hab" do
environment({"HAB_LICENSE" => "accept-no-persist"})
end

group 'hab'

user 'hab' do
group 'hab'
end

0 comments on commit 8c42452

Please sign in to comment.