summaryrefslogtreecommitdiff
path: root/spec/support/docker_helper.rb
blob: d1b6c219af5406c80c29888118d0c902b116fc1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true
RSpec.configure do |config|
  config.before(:suite) do
    Pathname.pwd.join('src').each_child do |file|
      next unless file.directory?

      Docker
        .new(pwd: file)
        .build(tag: "#{file.basename}:latest")
    end
  end
end