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: ...@@ -413,12 +413,12 @@ downtime_check:
ee_compat_check: ee_compat_check:
<<: *rake-exec <<: *rake-exec
only:
- branches@gitlab-org/gitlab-ce
except: except:
- master - master
- tags - tags
- /^[\d-]+-stable(-ee)?/ - /^[\d-]+-stable(-ee)?/
- branches@gitlab-org/gitlab-ee
- branches@gitlab/gitlab-ee
allow_failure: yes allow_failure: yes
cache: cache:
key: "ee_compat_check_repo" key: "ee_compat_check_repo"
......
...@@ -13,7 +13,10 @@ namespace :gitlab do ...@@ -13,7 +13,10 @@ namespace :gitlab do
args args
end 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 exit 0
else else
exit 1 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