Last active
November 20, 2015 09:48
-
-
Save fuzziness/f9faf2180758986e4795 to your computer and use it in GitHub Desktop.
Develop with local gems/engines + CI friendly environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BUNDLE_GEMFILE=Gemfile.dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module AuthServiceClient | |
VERSION = "0.6.dev#{ENV['BUILD_NUMBER']}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cool tips, thanks!