see if I can get travis to work
This commit is contained in:
12
assets/puppet/init.pp
Normal file
12
assets/puppet/init.pp
Normal file
@@ -0,0 +1,12 @@
|
||||
include apt
|
||||
class mono {
|
||||
package { "mono-devel" :
|
||||
ensure => "installed"
|
||||
}
|
||||
package { "mono-gmcs" :
|
||||
ensure => "installed"
|
||||
}
|
||||
package { "mono-vbnc" :
|
||||
ensure => "installed"
|
||||
}
|
||||
}
|
||||
3
assets/puppet/site.pp
Normal file
3
assets/puppet/site.pp
Normal file
@@ -0,0 +1,3 @@
|
||||
import 'init.pp'
|
||||
|
||||
include mono
|
||||
37
assets/tools.rake
Normal file
37
assets/tools.rake
Normal file
@@ -0,0 +1,37 @@
|
||||
namespace :tools do
|
||||
|
||||
# If we don't have a copy of nuget, download it
|
||||
task :nuget_bootstrap do
|
||||
puts 'Ensuring NuGet exists in tools/NuGet'
|
||||
|
||||
if !FileTest.exist?("#{NUGET}/nuget.exe")
|
||||
puts 'Downloading nuget from nuget.org'
|
||||
|
||||
FileUtils.mkdir_p("#{NUGET}")
|
||||
File.open("#{NUGET}/nuget.exe", "wb") do |file|
|
||||
file.write open('http://nuget.org/nuget.exe').read
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# Fetch nuget dependencies for all packages
|
||||
task :nuget_fetch => :nuget_bootstrap do
|
||||
|
||||
# If we aren't running under windows, assume we're using mono
|
||||
CMD_PREFIX = ""
|
||||
if !OS.windows?
|
||||
CMD_PREFIX = "mono"
|
||||
begin
|
||||
sh "mozroots --import --sync" #attempt to sync ssl things...
|
||||
rescue
|
||||
end
|
||||
end
|
||||
|
||||
# Make sure we get solution-level deps
|
||||
sh "#{CMD_PREFIX} #{NUGET}/nuget.exe i .nuget/packages.config -o packages"
|
||||
|
||||
FileList["**/packages.config"].each { |filepath|
|
||||
sh "#{CMD_PREFIX} #{NUGET}/nuget.exe i #{filepath} -o packages"
|
||||
}
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user