diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-02-21 13:41:17 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-02-22 13:49:28 -0500 |
commit | fe4a5706acb4a734acccc86a01416ed695ffbd06 (patch) | |
tree | 3e8eb2c9995e0ccd9f2904c507c70733f0848d69 /ci/travis.rb | |
parent | f24c2f09f8dcf12792d882f882ab70a99a289881 (diff) | |
download | rails-fe4a5706acb4a734acccc86a01416ed695ffbd06.tar.gz rails-fe4a5706acb4a734acccc86a01416ed695ffbd06.tar.bz2 rails-fe4a5706acb4a734acccc86a01416ed695ffbd06.zip |
Test rails-ujs in our travis matrix
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! |