Skip to content

Commit

Permalink
Add build for trilogy client
Browse files Browse the repository at this point in the history
In rails/rails#47880 we're adding Trilogy as an
additional mysql client for Rails. This change adds a new build for it.

The build is scoped to Rails 7.1 and above since we will not support
Trilogy for older versions of Rails.
  • Loading branch information
eileencodes committed Apr 18, 2023
1 parent 438d520 commit f68065d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pipeline-generate
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def step_for(subdirectory, rake_task, ruby: nil, service: "default", pre_steps:
label << " (#{short_ruby(ruby)})"
end

if rake_task.start_with?("mysql2:")
if rake_task.start_with?("mysql2:") || (RAILS_VERSION >= Gem::Version.new("7.1.x") && rake_task.start_with?("trilogy:"))
rake_task = "db:mysql:rebuild #{rake_task}"
elsif rake_task.start_with?("postgresql:")
rake_task = "db:postgresql:rebuild #{rake_task}"
Expand Down Expand Up @@ -228,9 +228,12 @@ end
actionview test default
activejob test default
activerecord mysql2:test mysqldb
activerecord trilogy:test mysqldb
activerecord postgresql:test postgresdb
activerecord sqlite3:test default
).each_slice(3) do |dir, task, service|
next if RAILS_VERSION >= Gem::Version.new("7.1.x") && task == "trilogy:test"

steps_for(dir, task, service: service)

next unless MAINLINE
Expand Down

0 comments on commit f68065d

Please sign in to comment.