Sha256: c0ad21f702538e433608e1dc6e7c515451d43179402bc8be4dec5142f3296204
Contents?: true
Size: 987 Bytes
Versions: 1
Compression:
Stored size: 987 Bytes
Contents
module Minke module Commands class Swift def commands config { :build => { :get => [ ['swift', 'build', '--fetch'], # ['bash','-c', "find /src/Packages/ -type d -name Tests -exec echo {} && rm -rf {} \\;"] ['bash','-c', "find /src/Packages/ -type d -name Tests | xargs rm -rf"] ], :build => [ ['rm', '-rf', '.build'], ['swift', 'build', '-Xcc', '-fblocks','-Xlinker', '-rpath', '-Xlinker', '.build/debug'] ], :test => [['swift', 'test']], }, :docker => { :image => 'ibmcom/kitura-ubuntu:latest', :binds => ["#{source_directory}:/src"], :working_directory => "/src" } } end def source_directory Dir.pwd if File.exists?('Package.swift') File.expand_path('../.') if File.exists?('../Package.swift') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
minke-0.16.0 | lib/minke/commands/swift.rb |