Commit 6be736a7 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Enable ee_compat_check for forks, but not EE

We exclude known EE projects, and check the project directory
name for EE forks.
parent 4f18de70
......@@ -413,12 +413,12 @@ downtime_check:
ee_compat_check:
<<: *rake-exec
only:
- branches@gitlab-org/gitlab-ce
except:
- master
- tags
- /^[\d-]+-stable(-ee)?/
- branches@gitlab-org/gitlab-ee
- branches@gitlab/gitlab-ee
allow_failure: yes
cache:
key: "ee_compat_check_repo"
......
......@@ -13,7 +13,10 @@ namespace :gitlab do
args
end
if Gitlab::EeCompatCheck.new(opts || {}).check
if File.basename(Rails.root) == 'gitlab-ee'
puts "Skipping EE projects"
exit 0
elsif Gitlab::EeCompatCheck.new(opts || {}).check
exit 0
else
exit 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment