Files
squib/samples/build_groups/Rakefile
T
Karneades 1fb9548637 Improve rakefile example to match docs
Improve example to match the example in the docs [1] and fix the test task name.

[1] https://squib.readthedocs.io/en/latest/build_groups.html
2019-05-27 09:16:06 -04:00

27 lines
530 B
Ruby

# Example Rakefile that makes use of build groups
require 'squib'
desc 'Build black-and-white by default'
task default: [:pnp]
desc 'Build both bw and color'
task both: [:pnp, :color]
desc 'Build black-and-white only'
task :pnp do
Squib.enable_build_globally :print_n_play
load 'build_groups.rb'
end
desc 'Build the color version only'
task :color do
Squib.enable_build_globally :color
load 'build_groups.rb'
end
desc 'Build a test card'
task :test do
Squib.enable_build_globally :test
load 'build_groups.rb'
end