Skip to content

Instantly share code, notes, and snippets.

@fuzziness
Last active November 20, 2015 09:48
Show Gist options
  • Save fuzziness/f9faf2180758986e4795 to your computer and use it in GitHub Desktop.
Save fuzziness/f9faf2180758986e4795 to your computer and use it in GitHub Desktop.
Develop with local gems/engines + CI friendly environment
BUNDLE_GEMFILE=Gemfile.dev
eval File.read(File.expand_path('../Gemfile', __FILE__))
%w(auth_service_client platform_commons market_shared).each do |engine|
if @dependencies.delete @dependencies.find { |gem| gem.name == engine }
gem engine, path: "local_engines/#{engine}"
end
end
puts '== Hardlink engine gems to local folder =='
unless File.exist?('local_engines/platform_commons')
Dir.mkdir 'local_engines'
system "ln -fs #{APP_ROOT}/../platform_commons local_engines/platform_commons"
end
module AuthServiceClient
VERSION = "0.6.dev#{ENV['BUILD_NUMBER']}"
end
@jacopo-beschi-intersail

Cool tips, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment