Skip to content

Commit

Permalink
Expose rake tasks to rake -T
Browse files Browse the repository at this point in the history
  • Loading branch information
Fryguy committed Jan 31, 2025
1 parent 2937fb2 commit 77c0de7
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 77c0de7

Please sign in to comment.