2016-09-29 13:31:14 -04:00
|
|
|
namespace :gitlab do
|
|
|
|
namespace :dev do
|
|
|
|
desc 'Checks if the branch would apply cleanly to EE'
|
2016-10-17 12:52:14 -04:00
|
|
|
task ee_compat_check: :environment do
|
2016-10-07 11:21:51 -04:00
|
|
|
return if defined?(Gitlab::License)
|
|
|
|
return unless ENV['CI']
|
|
|
|
|
2016-10-17 12:52:14 -04:00
|
|
|
success =
|
|
|
|
Gitlab::EeCompatCheck.new(
|
|
|
|
branch: ENV['CI_BUILD_REF_NAME'],
|
|
|
|
check_dir: File.expand_path('ee-compat-check', __dir__),
|
|
|
|
ce_repo: ENV['CI_BUILD_REPO']
|
|
|
|
).check
|
|
|
|
|
|
|
|
if success
|
|
|
|
exit 0
|
|
|
|
else
|
|
|
|
exit 1
|
2016-09-29 13:31:14 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|