summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsh McKenzie <amckenzie@gitlab.com>2019-05-22 11:09:39 +1000
committerAsh McKenzie <amckenzie@gitlab.com>2019-05-22 11:09:39 +1000
commit5748ad830ac7562f0421dd653849a9895a7c6e9c (patch)
tree114909e38817c5f98f5ba98590ff8a53aa6bae8f
parent2b57212dbe1ab657b0c2a6aa1407385b14d55be0 (diff)
downloadgitlab-ce-ashmckenzie/danger-run-locally.tar.gz
-rw-r--r--Dangerfile11
-rw-r--r--Gemfile1
-rw-r--r--Gemfile.lock39
-rw-r--r--doc/ci/introduction/index.md2
4 files changed, 49 insertions, 4 deletions
diff --git a/Dangerfile b/Dangerfile
index d3c0f01fee3..9ddadbe6bb5 100644
--- a/Dangerfile
+++ b/Dangerfile
@@ -18,16 +18,21 @@ REMOTE_DANGER_FILES = %w{
danger/specs
danger/database
danger/commit_messages
- danger/roulette
danger/single_codebase
danger/gitlab_ui_wg
danger/ce_ee_vue_templates
}.freeze
+CI_ONLY_DANGER_FILES = %w{
+ danger/roulette
+}.freeze
+
all_danger_files = LOCAL_DANGER_FILES
+all_danger_files += REMOTE_DANGER_FILES
-if ENV['CI'] && !helper.release_automation?
- all_danger_files += REMOTE_DANGER_FILES
+if ENV['GITLAB_CI'] && !helper.release_automation?
+ # all_danger_files += REMOTE_DANGER_FILES
+ # all_danger_files += CI_ONLY_DANGER_FILES
end
all_danger_files.each { |file| danger.import_dangerfile(path: file) }
diff --git a/Gemfile b/Gemfile
index 3de389430a2..07acab1ef00 100644
--- a/Gemfile
+++ b/Gemfile
@@ -437,3 +437,4 @@ gem 'flipper-active_support_cache_store', '~> 0.13.0'
gem 'lograge', '~> 0.5'
gem 'grape_logging', '~> 1.7'
+gem 'danger-gitlab'
diff --git a/Gemfile.lock b/Gemfile.lock
index 3dd1adb5f63..9de5690e6fc 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -127,9 +127,15 @@ GEM
numerizer (~> 0.1.1)
chunky_png (1.3.5)
citrus (3.0.2)
+ claide (1.0.2)
+ claide-plugins (0.9.2)
+ cork
+ nap
+ open4 (~> 1.3)
coderay (1.1.2)
coercible (1.0.0)
descendants_tracker (~> 0.0.1)
+ colored2 (3.1.2)
commonmarker (0.17.13)
ruby-enum (~> 0.5)
concord (0.1.5)
@@ -139,6 +145,8 @@ GEM
concurrent-ruby-ext (1.1.3)
concurrent-ruby (= 1.1.3)
connection_pool (2.2.2)
+ cork (0.3.0)
+ colored2 (~> 3.1)
crack (0.4.3)
safe_yaml (~> 1.0.0)
crass (1.0.4)
@@ -146,6 +154,22 @@ GEM
css_parser (1.5.0)
addressable
daemons (1.2.6)
+ danger (6.0.6)
+ claide (~> 1.0)
+ claide-plugins (>= 0.9.2)
+ colored2 (~> 3.1)
+ cork (~> 0.1)
+ faraday (~> 0.9)
+ faraday-http-cache (~> 1.0)
+ git (~> 1.5)
+ kramdown (~> 2.0)
+ kramdown-parser-gfm (~> 1.0)
+ no_proxy_fix
+ octokit (~> 4.7)
+ terminal-table (~> 1)
+ danger-gitlab (7.0.0)
+ danger (~> 6.0)
+ gitlab (~> 4.2, >= 4.2.0)
database_cleaner (1.7.0)
debug_inspector (0.0.3)
debugger-ruby_core_source (1.3.8)
@@ -203,6 +227,8 @@ GEM
railties (>= 3.0.0)
faraday (0.12.2)
multipart-post (>= 1.2, < 3)
+ faraday-http-cache (1.3.1)
+ faraday (~> 0.8)
faraday_middleware (0.12.2)
faraday (>= 0.7.4, < 1.0)
faraday_middleware-multi_json (0.0.6)
@@ -283,9 +309,13 @@ GEM
gettext_i18n_rails (>= 0.7.1)
po_to_json (>= 1.0.0)
rails (>= 3.2.0)
+ git (1.5.0)
gitaly-proto (1.27.0)
grpc (~> 1.0)
github-markup (1.7.0)
+ gitlab (4.11.0)
+ httparty (~> 0.14, >= 0.14.0)
+ terminal-table (~> 1.5, >= 1.5.1)
gitlab-default_value_for (3.1.1)
activerecord (>= 3.2.0, < 6.0)
gitlab-labkit (0.2.0)
@@ -440,6 +470,9 @@ GEM
kgio (2.11.2)
knapsack (1.17.0)
rake
+ kramdown (2.1.0)
+ kramdown-parser-gfm (1.0.1)
+ kramdown (~> 2.0)
kubeclient (4.2.2)
http (~> 3.0)
recursive-open-struct (~> 1.0, >= 1.0.4)
@@ -494,10 +527,12 @@ GEM
mustermann (~> 1.0.0)
mysql2 (0.4.10)
nakayoshi_fork (0.0.4)
+ nap (1.1.0)
net-ldap (0.16.0)
net-ssh (5.0.1)
netrc (0.11.0)
nio4r (2.3.1)
+ no_proxy_fix (0.1.2)
nokogiri (1.10.3)
mini_portile2 (~> 2.4.0)
nokogumbo (1.5.0)
@@ -574,6 +609,7 @@ GEM
addressable (~> 2.5)
omniauth (~> 1.3)
openid_connect (~> 1.1)
+ open4 (1.3.4)
openid_connect (1.1.6)
activemodel
attr_required (>= 1.0.0)
@@ -908,6 +944,8 @@ GEM
ffi
sysexits (1.2.0)
temple (0.8.0)
+ terminal-table (1.8.0)
+ unicode-display_width (~> 1.1, >= 1.1.1)
test-prof (0.2.5)
text (1.3.1)
thin (1.7.2)
@@ -1031,6 +1069,7 @@ DEPENDENCIES
concurrent-ruby (~> 1.1)
connection_pool (~> 2.0)
creole (~> 0.5.0)
+ danger-gitlab
database_cleaner (~> 1.7.0)
deckar01-task_list (= 2.2.0)
device_detector
diff --git a/doc/ci/introduction/index.md b/doc/ci/introduction/index.md
index 14ea648c00b..ab14d5bcf31 100644
--- a/doc/ci/introduction/index.md
+++ b/doc/ci/introduction/index.md
@@ -202,7 +202,7 @@ With GitLab CI/CD you can also:
- [Schedule pipelines](../../user/project/pipelines/schedules.md).
- Check for app vulnerabilities with [Security Test reports](https://docs.gitlab.com/ee/user/project/merge_requests/#security-reports-ultimate). **[ULTIMATE]**
-To see all CI/CD features, navigate back to the [CI/CD index](../README.md).
+To see all CI/CD features, navigate back to the [CI/CD index](README.md).
### Setting up GitLab CI/CD for the first time