-
-
Notifications
You must be signed in to change notification settings - Fork 267
Expand file tree
/
Copy pathRakefile
More file actions
26 lines (22 loc) · 736 Bytes
/
Rakefile
File metadata and controls
26 lines (22 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env rake
# =========================================================================
# Ceedling - Test-Centered Build System for C
# ThrowTheSwitch.org
# Copyright (c) 2010-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
# SPDX-License-Identifier: MIT
# =========================================================================
require 'bundler'
require 'rspec/core/rake_task'
desc "Run all rspecs"
RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = 'spec/**/*_spec.rb'
end
Dir['spec/**/*_spec.rb'].each do |p|
base = File.basename(p,'.*').gsub('_spec','')
desc "rspec #{base}"
RSpec::Core::RakeTask.new("spec:#{base}") do |t|
t.pattern = p
end
end
task :default => [:spec]
task :ci => [:spec]