DEV: Only install danger on Travis. (#7452)

DEV: Only install danger on Travis. (#7452)

diff --git a/.travis.yml b/.travis.yml
index 39e59f6..2196ae2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -75,7 +75,8 @@ script:
     bash -c "
       if [ '$RUN_LINT' == '1' ]; then
         bundle exec rubocop --parallel && \
-        bundle exec danger && \
+        gem install danger -v 5.13.0 && \
+        danger && \
         yarn eslint --ext .es6 app/assets/javascripts && \
         yarn eslint --ext .es6 test/javascripts && \
         yarn eslint --ext .es6 plugins/**/assets/javascripts && \
diff --git a/Gemfile b/Gemfile
index 10da7c5..cba4a7e 100644
--- a/Gemfile
+++ b/Gemfile
@@ -122,7 +122,6 @@ group :test do
   gem 'webmock', require: false
   gem 'fakeweb', '~> 1.3.0', require: false
   gem 'minitest', require: false
-  gem 'danger'
   gem 'simplecov', require: false
   gem "test-prof"
 end
diff --git a/Gemfile.lock b/Gemfile.lock
index 8eaa0ef..0a25385 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -80,34 +80,14 @@ GEM
     byebug (11.0.1)
     certified (1.0.0)
     chunky_png (1.3.11)
-    claide (1.0.2)
-    claide-plugins (0.9.2)
-      cork
-      nap
-      open4 (~> 1.3)
     coderay (1.1.2)
     colored2 (3.1.2)
     concurrent-ruby (1.1.5)
     connection_pool (2.2.2)
-    cork (0.3.0)
-      colored2 (~> 3.1)
     cppjieba_rb (0.3.3)
     crack (0.4.3)
       safe_yaml (~> 1.0.0)
     crass (1.0.4)
-    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)
     debug_inspector (0.0.3)
     diff-lcs (1.3)
     discourse-ember-source (3.8.0.1)
@@ -140,8 +120,6 @@ GEM
     fakeweb (1.3.0)
     faraday (0.15.4)
       multipart-post (>= 1.2, < 3)
-    faraday-http-cache (1.3.1)
-      faraday (~> 0.8)
     fast_blank (1.0.0)
     fast_xor (1.1.3)
       rake
@@ -152,7 +130,6 @@ GEM
     flamegraph (0.9.5)
     fspath (3.1.0)
     gc_tracer (1.5.1)
-    git (1.5.0)
     globalid (0.4.2)
       activesupport (>= 4.2.0)
     guess_html_encoding (0.0.11)
@@ -176,9 +153,6 @@ GEM
     json (2.2.0)
     jwt (2.1.0)
     kgio (2.11.2)
-    kramdown (2.1.0)
-    kramdown-parser-gfm (1.0.1)
-      kramdown (~> 2.0)
     libv8 (7.3.492.27.1)
     listen (3.1.5)
       rb-fsevent (~> 0.9, >= 0.9.4)
@@ -224,8 +198,6 @@ GEM
     multi_xml (0.6.0)
     multipart-post (2.0.0)
     mustache (1.1.0)
-    nap (1.1.0)
-    no_proxy_fix (0.1.2)
     nokogiri (1.10.3)
       mini_portile2 (~> 2.4.0)
     nokogumbo (2.0.1)
@@ -237,8 +209,6 @@ GEM
       multi_json (~> 1.3)
       multi_xml (~> 0.5)
       rack (>= 1.2, < 3)
-    octokit (4.14.0)
-      sawyer (~> 0.8.0, >= 0.5.3)
     oj (3.7.12)
     omniauth (1.9.0)
       hashie (>= 3.4.6, < 3.7.0)
@@ -274,7 +244,6 @@ GEM
       mustache
       nokogiri (~> 1.7)
       sanitize
-    open4 (1.3.4)
     openid-redis-store (0.0.2)
       redis
       ruby-openid
@@ -397,9 +366,6 @@ GEM
       sprockets (> 3.0)
       sprockets-rails
       tilt
-    sawyer (0.8.1)
-      addressable (>= 2.3.5, < 2.6)
-      faraday (~> 0.8, < 1.0)
     seed-fu (2.3.9)
       activerecord (>= 3.1)
       activesupport (>= 3.1)
@@ -424,8 +390,6 @@ GEM
       sprockets (>= 3.0.0)
     sshkey (2.0.0)
     stackprof (0.2.12)
-    terminal-table (1.8.0)
-      unicode-display_width (~> 1.1, >= 1.1.1)
     test-prof (0.8.0)
     thor (0.20.3)
     thread_safe (0.3.6)
@@ -473,7 +437,6 @@ DEPENDENCIES
   certified
   colored2
   cppjieba_rb
-  danger
   discourse-ember-source (~> 3.8.0)
   discourse_image_optim
   email_reply_trimmer (~> 0.1)

GitHub sha: 09b3d0c2