mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-06 01:11:07 +03:00
Install gradle 1.7 to buildserver (untested, may need some extra config)
This commit is contained in:
parent
8cf3b9ec5d
commit
08380bfacc
2 changed files with 42 additions and 4 deletions
|
@ -13,3 +13,25 @@ if node['kernel']['machine'] == "x86_64"
|
|||
end
|
||||
end
|
||||
|
||||
script "install-gradle" do
|
||||
cwd "/tmp"
|
||||
interpreter "bash"
|
||||
code "
|
||||
unzip /vagrant/cache/gradle-1.7-bin.zip
|
||||
mv gradle-1.7 /opt/gradle
|
||||
"
|
||||
not_if "test -d /opt/gradle"
|
||||
end
|
||||
|
||||
execute "add-gradle-home" do
|
||||
user user
|
||||
command "echo \"export GRADLE_HOME=/opt/gradle\" >> /home/#{user}/.bashrc"
|
||||
not_if "grep GRADLE_HOME /home/#{user}/.bashrc"
|
||||
end
|
||||
execute "add-gradle-bin" do
|
||||
user user
|
||||
command "echo \"export PATH=$PATH:/opt/gradle/bin\" >> /home/#{user}/.bashrc"
|
||||
not_if "grep gradle/bin /home/#{user}/.bashrc"
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue