diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-02-22 15:29:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-22 15:29:12 -0500 |
commit | a5b83123177b41a1b9cc7fabe89e408228efcd19 (patch) | |
tree | 3e8eb2c9995e0ccd9f2904c507c70733f0848d69 /ci/travis.rb | |
parent | 2e0f7baef344474b39d660db5fb0b8c9fb33dc3b (diff) | |
parent | fe4a5706acb4a734acccc86a01416ed695ffbd06 (diff) | |
download | rails-a5b83123177b41a1b9cc7fabe89e408228efcd19.tar.gz rails-a5b83123177b41a1b9cc7fabe89e408228efcd19.tar.bz2 rails-a5b83123177b41a1b9cc7fabe89e408228efcd19.zip |
Merge pull request #28098 from rails/rails-ujs-intergration
Better integrate rails-ujs in our repository
Diffstat (limited to 'ci/travis.rb')
-rwxr-xr-x | ci/travis.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ci/travis.rb b/ci/travis.rb index f59ce5406a..eb2890ca70 100755 --- a/ci/travis.rb +++ b/ci/travis.rb @@ -36,8 +36,10 @@ class Build def run!(options = {}) self.options.update(options) + Dir.chdir(dir) do announce(heading) + if guides? run_bug_report_templates else @@ -69,7 +71,7 @@ class Build end tasks else - ["test", ("isolated" if isolated?), ("integration" if integration?)].compact.join(":") + ["test", ("isolated" if isolated?), ("integration" if integration?), ("ujs" if ujs?)].compact.join(":") end end @@ -92,6 +94,10 @@ class Build gem == "guides" end + def ujs? + component.split(":").last == "ujs" + end + def isolated? options[:isolated] end @@ -151,6 +157,7 @@ ENV["GEM"].split(",").each do |gem| next if gem == "ac:integration" && isolated next if gem == "aj:integration" && isolated next if gem == "guides" && isolated + next if gem == "av:ujs" && isolated build = Build.new(gem, isolated: isolated) results[build.key] = build.run! |