File: Rakefile

package info (click to toggle)
ruby-aruba 2.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,972 kB
  • sloc: ruby: 7,151; javascript: 6,850; makefile: 5
file content (43 lines) | stat: -rw-r--r-- 1,031 bytes parent folder | download | duplicates (2)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
$LOAD_PATH << File.expand_path(__dir__)

require "aruba/platform"

require "cucumber/rake/task"
require "rspec/core/rake_task"
require "rubocop/rake_task"
require "yard-junk/rake"

Cucumber::Rake::Task.new do |t|
  t.cucumber_opts = %w(--format progress)
end

Cucumber::Rake::Task.new("cucumber:wip", "Run Cucumber features "\
                                         'which are "WORK IN PROGRESS" and '\
                                         "are allowed to fail") do |t|
  t.cucumber_opts = %w(--tags @wip:3 --wip)
end

RSpec::Core::RakeTask.new

desc "Run the whole test suite."
task test: [:spec, :cucumber]

RuboCop::RakeTask.new
YardJunk::Rake.define_task

Bundler::GemHelper.install_tasks

require "rake/manifest/task"

Rake::Manifest::Task.new do |t|
  t.patterns = ["lib/**/*", "exe/*", "CHANGELOG.md", "CONTRIBUTING.md",
                "LICENSE", "README.md"]
end

# Check the manifest before building the gem
task build: "manifest:check"

desc "Run checks"
task lint: %w(rubocop manifest:check)

task default: :test