Skip to content

Commit

Permalink
Merge pull request #10 from Fryguy/expose_rake_tasks
Browse files Browse the repository at this point in the history
Expose rake tasks to rake -T
  • Loading branch information
agrare committed Jan 31, 2025
2 parents 580e552 + 77c0de7 commit 0d115f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,15 @@ rescue LoadError
end
end

desc "Build the docker images for test"
task :docker_images do
Dir.glob('_docker/Dockerfile.*').each do |dockerfile|
tag = 'ruby-rpm-ffi:' + File.extname(dockerfile).delete('.')
sh %(podman build -f #{dockerfile} -t #{tag} .)
end
end

desc "Run the tests from within the docker images"
task :docker_test do
Dir.glob('_docker/Dockerfile.*').each do |dockerfile|
tag = 'ruby-rpm-ffi:' + File.extname(dockerfile).delete('.')
Expand Down

0 comments on commit 0d115f1

Please sign in to comment.